asmaoui / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

When Date.format is set, can't set start date. #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Setting Date.format in with the date.js library. 
Date.format = 'yyyy-mm-dd 12:00 AM'
$('.date-picker').datePicker({startDate: '01/01/1970'})

What is the expected output? What do you see instead?

I expect to be able to select dates in the past until January 1st, 1970.
Instead I am unable to do this.

Please provide a URL to a page displaying the problem.

http://aviblock.com/test.html

What version of the datepicker are you using? On what operating system? And
Which Browser?

jquery.datePicker.js 21 2009-01-11 19:45:13Z, Firefox 3.0.5, Windows XP

Please provide any additional information below.

Original issue reported on code.google.com by blockhea...@gmail.com on 19 Jan 2009 at 8:47

GoogleCodeExporter commented 9 years ago
It turns out the format set with Date.format has to be the format used when 
setting
the start and end dates. Please close this issue.

Original comment by blockhea...@gmail.com on 20 Jan 2009 at 2:54

GoogleCodeExporter commented 9 years ago
Yeah - you figured it out. If you change the date.format you have to use that 
format
when passing any dates into the date picker... Closing the issue :)

Original comment by kelvin.l...@gmail.com on 20 Jan 2009 at 10:25