Open Closed

ABP Date range picker display format #6249


User avatar
0
mz_s73 created
  • 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 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team 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 created

    Hi maliming,

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

  • User Avatar
    0
    maliming created
    Support Team 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 created

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

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks.

    Your question credits refunded.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09