Link to home
Start Free TrialLog in
Avatar of maqskywalker
maqskywalker

asked on

jQuery UI Date Picker min and max dates

Hi experts,

I'm using the jQuery UI DatePicker on a html page.

I saw the Restrict Date Range example at this url.
http://jqueryui.com/datepicker/#min-max

This is example is the same as the Restrict Date Range example.
http://jsfiddle.net/zk9ku9cr/

The min date is to 20 days prior to today's date.


Anyone know how i set the min date to be the first day of the current year and the max date to be the last date of the current year?

So since the current year is 2015  the min date is  01/01/2015 and the max date is 12/31/2015?
ASKER CERTIFIED SOLUTION
Avatar of Robert Schutt
Robert Schutt
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial