Calendar - ALlow only current and past dates


Thanks again for the great controls. I’m using DHTMLX Calendar as an input for my form and I’m trying to prevent users from selecting dates in the future.

I tried adding .setSensitive(null, new Date()); to my doOnLoad() fuinction but that doesn’t seem to do it. I think I’m missing something.

Can you help?

Thanks again!

You should note that date should be specified in one of the following formats: ‘%Y-%m-%d’ or ‘%Y.%m.%d’.