datepickerConfig not applying date format


Topic: datepickerConfig not applying date format

foundant pro premium priority asked 9 months ago

Expected behavior adding:

<MDBCalendar
 :datepickerConfig="{
     format: 'MM/DD/YYYY',
 }"
/>

In my calendar component would change events to interpret and display dates as follows: dayjs().format("MM/DD/YYYY")

I need to the dates to display in this format "MM/DD/YYYY" so March 14th, 2024 should display as 03/14/2024 in the popup and everywhere else there is a date -- right now the format is "DD/MM/YYYY" which is not suitable for our needs. The regular datepicker accepts this format, the calendar ignores this options object.

Actual behavior The dates are correctly slotted into the calendar but dates are displayed as "DD/MM/YYYY" so March 14th, 2024 would show as 14/03/2024.

Resources (screenshots, code snippets etc.)


Bartosz Cylwik staff answered 9 months ago

Hi! Thanks for letting us know about this issue! I see that options are being passed to the datepicker because the inline is working properly. The format option is having some issues and it only switches to the selected one after picking a date (but still not always proper).

I'm adding this to our list and we will try to fix this for the next release.

Sorry for the inconvenience.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: MDB5 4.1.1
  • Device: MacBook pro
  • Browser: Chrome
  • OS: MacOs Sonoma
  • Provided sample code: No
  • Provided link: No