开发者

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

开发者 https://www.devze.com 2023-01-14 11:03 出处:网络
What time fo开发者_StackOverflow社区rmat is this and how can I reformat it using JQuery?It\'s from a pubdate from an podcast XML.

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

精彩评论

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