date.format in Chrome 5
Posted
by blueblood
on Stack Overflow
See other posts from Stack Overflow
or by blueblood
Published on 2010-05-28T12:06:51Z
Indexed on
2010/05/28
12:22 UTC
Read the original article
Hit count: 166
Hello,
I'm experiencing something really strange with my javascript in chrome with Date().format.
If I use the console and type:
d = new Date(Date.parse("2010-05-28"))
d.format("yyyy-MM-dd");
""
d._toFormattedString();
"Fri May 28 2010 00:00:00 GMT+0200 (W. Europe Daylight Time)"
Anyone got any clue why I get an empty string? And it's only in Chrome, didn't happen in Chrome 4, and it doesn't happen in IE8/Firefox3.5
© Stack Overflow or respective owner