Open GoogleCodeExporter opened 8 years ago
More information - this only seems to occur when setting startDate.
Original comment by alexjasc...@gmail.com
on 17 Feb 2011 at 10:06
Even forcing in 'year' doesnt seem to correct behaviour;
<script type="text/javascript">
jQuery(function()
{
Date.format = 'mmm-dd-yy'
jQuery('.date-pick').datePicker({
clickInput:true,
createButton:false,
showYearNavigation:false,
startDate:'Feb-17-01',
year:2011,
verticalOffset:0,
horizontalOffset:0
});
});
</script>
Original comment by alexjasc...@gmail.com
on 17 Feb 2011 at 10:17
I'll try to take a look into it...
As a quick workaround, what happens if you set start date after initialising
the date picker? e.g.
jQuery(function()
{
Date.format = 'mmm-dd-yy'
jQuery('.date-pick').datePicker({
clickInput:true,
createButton:false,
showYearNavigation:false,
year:2011,
verticalOffset:0,
horizontalOffset:0
}).dpSetStartDate('Feb-17-01');
});
And what happens with a different date format?
Original comment by kelvin.l...@gmail.com
on 17 Feb 2011 at 4:56
I tried this;
<script type="text/javascript">
jQuery(function()
{
Date.format = 'mmm-dd-yy'
jQuery('.date-pick').datePicker({
clickInput:true,
createButton:false,
showYearNavigation:false,
year:2011,
verticalOffset:0,
horizontalOffset:0
}).dpSetStartDate('Feb-18-11');
});
</script>
, and it will on 1st click select 2011 as the year. However when I select a
date, and click again, its back to defaulting to 1911.
Original comment by alexjasc...@gmail.com
on 18 Feb 2011 at 12:58
And with a different Date.format?
Original comment by kelvin.l...@gmail.com
on 18 Feb 2011 at 1:59
Original issue reported on code.google.com by
alexjasc...@gmail.com
on 17 Feb 2011 at 10:03