» Forums
» The DHTML Calendar
» General discussion
» Not selectable dates
» Re: Not selectable dates
» Re[2]: Not selectable dates
| Re[2]: Not selectable dates ¶ | |
| When I impliment your code suggestion, my variation shown below, I get some strange behavior: Calendar.setup({ The calendar displays fine but instead of dates between today (04/03/2007 in my example) and a year from now (04/03/2008) being selectable, the calendar only allows dates 1 month from now (05/03/2007) to a year + 1 month from now (05/03/2008). Any idea why?
| |
| Re[3]: Not selectable dates ¶ | |
| Remember that when constructing a new Date() object, the month parameter is the INDEX of the month: 0 = January, 1 = February.... If you're trying to set the date "April 3, 2007", you need to construct it as: new Date(2007,3,3). Or pass it as a formal string: new Date("April 3, 2007"); | |
| last |
(*) Discounts available for the above products!













