MDBootstrap 5 datetime picker - setting values using options


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

softcon pro premium asked 3 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 3 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 pro premium commented 3 years ago

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


Michał Duszak staff answered 3 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


softcon pro premium answered 3 years ago

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


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
  • User: Pro
  • 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