views:

45

answers:

1

IE is giving me an undefined NAN when i try to view the calender...

here is my html

  $("#datepicker").datepicker({ altField: '#outing_suggested_date', minDate: new Date, dateFormat: "yy-mm-dd", defaultDate: new Date("2010-10-07"), setDate: new Date("2010-10-07") });

here is the code i use to generate it

  $("#datepicker").datepicker({ altField: '#outing_suggested_date', minDate: new Date, dateFormat: "yy-mm-dd", defaultDate: new Date("<%=@current_object.suggested_date.strftime("%Y-%m-%d")%>"), setDate: new Date("<%=@current_object.suggested_date.strftime("%Y-%m-%d")%>") });

Any ideas...maybe IE cant handle something, all other browsers are fine

+1  A: 

I see for the option minDate you've used the value new Date, change that to new Date(). Maybe that already does the trick.

Thomas