Ouvert Fermé

ABP Date range picker display format #6249


User avatar
0
mz_s73 créé
  • ABP Framework version: v7.3
  • UI Type: MVC
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC): Yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I am using date range picker using abps tag helper. Currently it shows MM/DD/YYYY as date format. How do I set the display format to be DD/MM/YYYY - DD/MM/YYYY.

<abp-date-range-picker id="DateRangePicker" asp-for-start="@Model.StartDate.Date" asp-for-end="@Model.EndDate.Date" max-date="@Model.MaxDate" readonly=true label="Date Range" open-button=false data-date-limit='{"days": "6"}' data-show-today-button="false" data-show-clear-button="false" />


5 Réponse (s)
  • User Avatar
    0
    maliming créé
    Équipe d'assistance Fullstack Developer

    hi

    I think the datetime format is based on your current culture.

    Can you try to change the current language?

  • User Avatar
    0
    mz_s73 créé

    Hi maliming,

    Is there any way we can set it to DD/MM/YYYY without culture dependency

  • User Avatar
    0
    maliming créé
    Équipe d'assistance Fullstack Developer

    hi

    You can override the abp/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/bootstrap/dom-event-handlers.js file.

    We will add an option to override it.

    https://github.com/abpframework/abp/issues/18298

  • User Avatar
    0
    mz_s73 créé

    Thanks for creating the issue. Would be waiting for it to be fixed and released soon.

  • User Avatar
    0
    maliming créé
    Équipe d'assistance Fullstack Developer

    Thanks.

    Your question credits refunded.

Made with ❤️ on ABP v8.2.0-preview Updated on mars 25, 2024, 15:11