Page 1 of 1

DateTimePicker - Disable date

Posted: Sat Oct 21, 2017 1:24 pm
by sangnandar

How to disable dates on DateTimePicker?
I want to exclude dates:

  • weekend
  • holiday (reads mysql holiday_table)
  • dates after today
    Change the look (color, etc) and user can't select those dates on DateTimePicker.

I see Options in advanced setting for this extension. What is that for?

Thanks.


Re: DateTimePicker -- Disable date

Posted: Mon Oct 23, 2017 11:12 am
by arbei

Visit the URL of "Developer Website" in [Notes] of the DateTimePicker, visit [docs] -> [Options.md], and there are option "disabledDates" and "daysOfWeekDisabled" to control which date is required to disable.

Then add the options in JSON format to [Advanced] -> [Project] -> [Options].