简体   繁体   English

这是什么时间格式,如何使用JQuery重新格式化?

[英]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? 这是什么时间格式,如何使用JQuery重新格式化? It's from a pubdate from an podcast XML. 它来自播客XML的pubdate。

Mon, 26 Jul 2010 19:15:58 -0700 星期一,2010年7月26日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) : JS了解格式(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 更多信息: 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 快速搜索了http://plugins.jquery.com/project/jquery-dateFormat

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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