To disable dates

Hello all,
after a user sets the time on a calendar on a form, the only way to confirm this if by clicking on a date… the calendar closes and the values on the form change…
I saw there is an option to disable some dates on a calendar.
Can someone suggest a “quick” way to disable all the dates of the calendar, leaving enabled only the current date and tomorrow’s date if the user needs to put a time after midnight?

Thanks for any suggestions!
Marco

Hello
Read about it here:
docs.dhtmlx.com/doku.php?id=dhtm … abledays&s[]=disableday

Thanks a lot Darya! As always you point me in the right direction…
The trick is that you must use an array… every time you call the function disableDays(), all prior calls to it are erased!! :astonished:

Greetings and a Happy 2013 to you!

Marco

So this method is as it is :slight_smile:
And Happy New Year You Too!