Closed GoogleCodeExporter closed 8 years ago
Looks like 'setDate' is not working as excepted. On scroller pop up, Mobiscroll
tries to parse the input value, and reverts to current date, if value cannot be
parsed, so the value set with 'setDate' gets lost. There is a third boolean
parameter for 'setDate', if set to true, it updates the input value as well
($(this).scroller('setDate', datetime, true))
But in your case all the hustle is completely unnecessary, because Mobiscroll
parses automatically the date from the input value. Your problem is, that your
input has a date in dd/mm/yy format, while Mobiscroll defaults to mm/dd/yy. So
your solution is, to override the default dateformat:
$('.datetime').scroller({preset: 'datetime', dateFormat: 'dd/mm/yy'});
Original comment by diosla...@gmail.com
on 27 Feb 2012 at 7:23
Ah... Thanks for your help!
Original comment by m...@ourdiggs.co.uk
on 27 Feb 2012 at 2:11
Original issue reported on code.google.com by
m...@ourdiggs.co.uk
on 26 Feb 2012 at 8:12