The month parameter for the javascript Date object uses a 0 based index, so
1 - 1 means month 0 means January.

You would use Date(2009, 9, 25)

On Sat, Oct 24, 2009 at 7:56 AM, Andrew243 <m...@andrewcampbell.us> wrote:

>
> Looking to implement datepicker with minDate and maxDate set.  But I
> don't understand the "actual" date format.
>
> The example given is "new Date(2009, 1 - 1, 26)" and it seems to set
> the date to 2009-01-26, but what is the "1 - 1"?
>
> What, as an example, would I set minDate to for the date 2009-10-25.
>
> Thanks
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery-ui@googlegroups.com
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to