Topic: MDBDatepicker selected date does not work with custom date format

VDLP priority asked 1 year ago


I encountered a bug with the MDBDatepicker component, the datepicker displays the wrong date in the modal popup with a custom format.

My code:

        label="Select a date"

And in script setup just an empty ref:

const picker4 = ref();

Steps to reproduce:

  1. Select the 9th of Januari 2022 in datepicker modal
  2. Click on "Ok"
  3. Click on the input again
  4. The wrong date is now selected in the modal (the 1st of september is now selected)

Expected behavior

Display the right date in the modal of the datepicker with a custom date format.

Actual behavior

Displays the wrong date in the datepicker with a custom format.

VDLP priority answered 1 year ago

Hi, is there any update on this issue. We are preparing for a production release and this issue is still present. Can this be fixed for MDB5 Vue v1?

Mikołaj Smoleński staff commented 1 year ago

Hi Menno,

The fix is going to be released on Monday.

Keep coding!

Bartosz Cylwik staff answered 1 year ago

Hello, thank you for letting us know about that. We have added this bug to our list and we will fix it as soon as possible. Best Regards

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: MDB5 3.0.0
  • Device: Macbook Pro M1
  • Browser: Chrome
  • OS: macOS Monterey
  • Provided sample code: No
  • Provided link: No