admin管理员组文章数量:1316009
I'm using Node.js . In a HTTP response header is a field last-modified
with a string representing a date and time according to RFC 2822
'last-modified': 'Tue, 27 Dec 2011 02:12:35 GMT',
How do I convert this to a Javascript Date object?
I'm using Node.js . In a HTTP response header is a field last-modified
with a string representing a date and time according to RFC 2822
'last-modified': 'Tue, 27 Dec 2011 02:12:35 GMT',
How do I convert this to a Javascript Date object?
Share Improve this question edited Oct 7, 2021 at 5:54 CommunityBot 11 silver badge asked Dec 27, 2011 at 16:46 Colonel PanicColonel Panic 138k97 gold badges418 silver badges480 bronze badges1 Answer
Reset to default 8What's wrong with the JS Date methods?
new Date( 'Tue, 27 Dec 2011 02:12:35 GMT' )
版权声明:本文标题:javascript - Parse date string in RFC 2822 format (as found in HTTP header field `last-modified`) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741994999a2409865.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论