Hi,
I have used date picker for selecting date of birth of the user. I have set the minDate and maxDate such that the user should be no older than 60 and no younger than 20.
I have used "c-n:c+n" for showing all the years in the range, which now display in a scroll box.
But for the months, it displays months only before the current month. i.e. if today's date is 18-Nov-2012, as per the above options having been set, date picker shows "Jan" - "Nov" in the months panel. "Dec" is missing.
Has anybody faced the same situation? Could anybody help me out with this problem?
My current code is this:
$("#PersonalDetails_DateOfBirth").datepicker({
changeMonth: true,
changeYear: true,
showOn: "button",
buttonImageOnly: true,
minDate: "-60Y",
maxDate: "-20Y",
dateFormat: "dd/mm/yy",
yearRange: "c-60:c+20"
});