简体   繁体   中英

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

What time format 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM