I want to restrict the user to enter date of birth as today's date. Currently i am using the range from 1900 until current year. How to make the range from 1900 to a day before today e.g Today the date is 20/03/2014. The user should be able to enter date of birth from 1900 to 19/03/2014.
This is the script i am currently using
setDatePicker($("#date_of_birth_str"),"dd/mm/yy");
var currYear = '<fmt:formatDate value="${now}" pattern="yyyy"/>';
$("#date_of_birth_str").datepicker("option","yearRange", "1900:"+currYear);`