Forums

date picker V4 RC3.0, how to block all past days

shd 18 Jan, 2012
Hi Bob,

I looked in your forum and after a lot off puzzling I had almost the daypicker how I want it but one thing I can't find out.

I want that it specify a start date of today and block all past dates.
What must I put after the minDate:???? Not a fixed date, it must be dynamic because all old dates must be blocked so people can't select them. Now is only the day of today higlighted and I can select all past days.
Your code is not working:
minDate: new Date().decrement('day', 4)

and this is a fixed date
	minDate: { date: '10-03-2009', format: 'd-m-Y' }


Hopefully you cab help me.

Best Regards Stephanie
GreyHead 18 Jan, 2012
Hi Stephanie,

The minDate code only works if you switch to the updated MooTools version of the DataPicker library (see this post).

Bob
shd 23 Jan, 2012
Hi Bob,
Tnkxxx, :-)

Regards,
Stephanie
This topic is locked and no more replies can be posted.