RFC 2822 — RFC 2822 date-time (e-mail and RSS)
Pattern ddd, DD MMM YYYY HH:mm:ss ±HHMM · e.g. Sat, 29 Jun 2024 13:45:00 +0000
About this format
- Fields
- Weekday (optional), Day, Month name, Year, Hour, Min, Sec (optional), Zone
- Clock
- 24-hour
- Carries a time zone
- Yes — a numeric offset (+0000, -0500) or one of the RFC zone names (UT, GMT, EST … PDT); this site writes it in UTC (+0000)
- Typically seen in
- E-mail Date: headers, RSS 2.0 pubDate, HTTP Date and Last-Modified headers (GMT form), date -R, PHP DATE_RFC2822, Python email.utils
Sample values
- Mon, 29 Jun 2026 14:30:00 +0000
- Tue, 29 Feb 2028 09:05:07 +0000
- Thu, 01 Jan 1970 00:00:00 +0000
Rules and pitfalls
- Defined in RFC 2822 §3.3 (Internet Message Format). RFC 5322 obsoletes RFC 2822 and is the current standard; its date-time syntax is essentially the same, so values written to either read alike. Month and weekday names are English three-letter abbreviations, in any letter case.
- When a weekday is written it must agree with the date: "Mon, 08 Mar 2026 07:30:00 +0000" is refused because 8 March 2026 is a Sunday.
- The year has four digits. Two-digit years (the obsolete RFC 822 form) are refused rather than guessed; seconds are optional, and a leap second (:60) is refused.
- "-0000" means the time is UTC but the sender's own zone is unknown. EST, EDT, CST, CDT, MST, MDT, PST and PDT are fixed offsets; single-letter military zones are refused because the RFC itself says they cannot be relied on.
- HTTP dates such as "Sun, 08 Mar 2026 07:30:00 GMT" (what JavaScript's toUTCString() writes) are the GMT form of the same syntax and read the same way.
- JavaScript's Date toString() text, such as "Sun Mar 08 2026 07:30:00 GMT-0400 (Eastern Daylight Time)", is read as this format too: the GMT offset decides the instant, the zone name in parentheses is only informational, and a written weekday must agree with the date. Results are written in the RFC 2822 form above.
- The text does not sort in time order (the day comes before the year and months are names): compare the instants, not the strings.
Convert RFC 2822 to and from other formats
Choose any of the 22 other formats above, or swap the direction. The free converter recognises RFC 2822 values automatically and reads 82 formats across time zones; the file workspace converts a whole CSV column.