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
精彩评论