以RFC 2822格式parsingdatestring(在HTTP头字段“last-modified”中find)

我正在使用Node.js。 在HTTP响应头中, last-modified一个字段是根据RFC 2822用表示date和时间的string进行last-modified

  'last-modified': 'Tue, 27 Dec 2011 02:12:35 GMT', 

我如何将其转换为Javascriptdate对象?

JS Date方法有什么问题?

 new Date( 'Tue, 27 Dec 2011 02:12:35 GMT' )