Closed GoogleCodeExporter closed 9 years ago
Can you please show how are you calling the formatDate function?
Original comment by diosla...@gmail.com
on 17 Dec 2012 at 9:04
var date1= $("#i").scroller('getDate');
var date2= jQuery.scroller.formatDate('yy-MM-dd HH:mm:ss', date1);
/*
alert(date1.getHours()+':'+date1.getMinutes()+':'+date1.getSeconds());
this gives: 14.35.0
alert(date2);
this gives the value shown in the image
*/
Original comment by harsh.pa...@gmail.com
on 17 Dec 2012 at 9:30
You should use "ii" to get the minutes correctly. "mm" means month, that's why
you always get 12.
Please take a look at the documentation of the datetime scroller's timeFormat
option.
http://docs.mobiscroll.com/23/datetime-preseta
Original comment by diosla...@gmail.com
on 17 Dec 2012 at 9:36
Thank you!
Original comment by harsh.pa...@gmail.com
on 17 Dec 2012 at 9:39
Original issue reported on code.google.com by
harsh.pa...@gmail.com
on 17 Dec 2012 at 8:46Attachments: