i using date.js parse string of date , time
var start_time='10-jun-15 12:00 am'; var end_time='10-jun-15 12:00 pm';
when alerts
alert(date.parse(start_time)); alert(date.parse(end_time));
the first 1 shows
wed jun 10 2015 12:00:00 gmt+0530 (india standard time)
and second 1 shows
null
how solve this?.thanks in advance
edited:
i've checked date format in both chrome , ff. firefox doesn't understand format, in chrome works fine.
i used '10 jun 2015 12:00 pm' format , worked fine in both browsers.
so should try removing dashes , use full year or use other date format.
the date should in rfc2822 or iso 8601 date format.
Comments
Post a Comment