![]() |
jQuery Datepicker UI - Min/Max date range problems - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: jQuery Datepicker UI - Min/Max date range problems (/showthread.php?tid=12332) |
jQuery Datepicker UI - Min/Max date range problems - El Forum - 10-15-2008 [eluser]Unknown[/eluser] When adding a min/max restriction to the calendar and if the range of the time is within the current month the calendar doesn't seem to handle 30/31 days correctly. If for instance I have the following code: <input name="endDate" id="endDate" size="23" value="" class="" date:maxDate="new Date(2008, 10 - 1, 31)"/> The actual output of this would be the max date range only allows selection of the 30th rather than the 31st. If I try this on any other month other than the calendar month we are in now it will work. Strangely enough, this also occurs for the 30th. I thought that by adding one day to the day passed in "new Date()" would work but it simply display the 1st as well. jQuery Datepicker UI - Min/Max date range problems - El Forum - 10-15-2008 [eluser]Michael Wales[/eluser] Moved to Code and App Dev forum - this pretty much has nothing to do with CodeIgniter. Almost a Lounge topic... |