📅Date & Time
RFC 3339 Date Standard
A profile of ISO 8601 used for internet protocols.
Explanation
RFC 3339 is strictly defined for internet protocols and is similar to ISO 8601 but with fewer options.
Examples
Standard
Output
2024-01-12T14:30:00Z
With Offset
Output
2024-01-12T14:30:00-08:00
Code Examples
Grammar
YYYY-MM-DDTHH:MM:SSZ
YYYY-MM-DDTHH:MM:SS+HH:MM
YYYY-MM-DDTHH:MM:SS-HH:MM💡 Tips
- The "Z" is required if no offset is given
- Seconds are mandatory
- Most common format for modern REST APIs
⚠️ Common Pitfalls
- Lower-case "t" or "z" are technically invalid
- Failing to include the colon in the offset (e.g., -0800)