DMXzone Calendar Support Product Page
yearRange parameter on calendar
Asked 03 Nov 2010 05:41:00
1
has this question
03 Nov 2010 05:41:00 Walter Barlet posted:
I'm trying to limit the calendar selection with the yearRange parameter but it does not work. Ex.yearRange : "-50:-18",
The initial selected date from the calendar returns the selected day,month but with year 2010.
Edited by - Walter Barlet on 03 Nov 2010 05:41:48
Replies
Replied 13 Nov 2010 15:25:48
13 Nov 2010 15:25:48 Walter Barlet replied:
I already found a solution for it by adding the following code:
minDate : "-612m:+1day",
maxDate : "-216m"
that will allow the user to enter a birthday between 18 and 50 years old.
Of course everything works perfect using Today as base date but it would be nice if minDate and maxDate could work with any base date.
minDate : "-612m:+1day",
maxDate : "-216m"
that will allow the user to enter a birthday between 18 and 50 years old.
Of course everything works perfect using Today as base date but it would be nice if minDate and maxDate could work with any base date.