开发者

What time format is this and how can I reformat it using JQuery?

What time fo开发者_StackOverflow社区rmat is this and how can I reformat it using JQuery? It's from a pubdate from an podcast XML.

Mon, 26 Jul 2010 19:15:58 -0700

Is there a precise name for this date format? I haven't seen this exact one anywhere and it's baffling me a bit. I've tried the plugin listed below but it doesn't work correctly or take this date input.


JS understands that format (RFC 1123) :

javascript:alert(new Date(Date.parse('Mon, 26 Jul 2010 19:15:58 -0700')))

More here: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse


You'll need a plugin. A quick search pulled up http://plugins.jquery.com/project/jquery-dateFormat

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜