Topic: MDBootstrap 5 datetime picker - setting values using options does not work

softcon premium asked 2 years ago


Expected behavior Ability to create a datetimepicker with min and max dates, and incremented times at 5 minutes

Actual behavior Implementing via javascript shows the datetime popup but no dates can be selected. Implementing it without javascript works but does not provide the ability to set min/max dates or incremented times, as Js is required.

Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/softcon/3272723#html-tab-view


Michał Duszak staff answered 2 years ago


It does, you can only choose from August 20 up to August 30. Also minutes are incremented every five minutes. datepicker snippet


softcon premium commented 2 years ago

I see, sorry, I had to navigate back to August to see the dates section


softcon premium answered 2 years ago


Thanks but I can't see any difference. It still doesn't work :S


Michał Duszak staff answered 2 years ago


Here is a working example made from your snippet: min and max should be in valid date formats. https://mdbootstrap.com/snippets/standard/m-duszak/3274560



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: Pc
  • Browser: All
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes