Quote:
Originally Posted by xelawho
a fabulously unreliable approach... this:
Code:
var d=new Date("2013-01-25 22:31:55.809231")
alert(d.getDate())
gives NaN in FF and IE and 25 in Chrome... regExing it, as per Ali's suggestion would appear much more sensible
|
Code:
new Date( "2013-01-25 22:31:55.809231".replace(" ","T") ).toLocaleString()