timrwood/moment — Issue #116: Parse dates in RFC 2822 format as seen in HTTP headers
Author: matt-hickford
Created: 2011-12-27 15:33:55+00:00
State: open

Hi. Have you ever seen a HTTP response header? The `last-modified` field looks like this

Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT

It's a string representing a date and time according to a format defined in [RFC 2822](http://tools.ietf.org/html/rfc2822#section-3.3). Alas, [JavaScript's date object](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date) and methods are too weak to parse it. It would be extremely helpful to offer a capable helper method to parse this string to Javascript Date object.