std = new Date("2012-06-22 00:05:00");
std_string = std.getHours() + ":" + std.getMinutes();
On mobile browser (Android, Blackberry 7) it show: “Nan:Nan”, why?
How could I fix that?
“2012-06-22 00:05:00” come from a http WebService and is MYSQL datetime format
Did you try to create your object like this :
I Jsfiddled it so you can try it directly on your browser :
http://jsfiddle.net/PyGgb/
EDIT : I made a test on my Android 2.3 and it’s working :