📅Date & Time

ISO 8601 DateTime (UTC)

Complete ISO 8601 timestamp with Zulu (UTC) designation.

Explanation

The full ISO 8601 format includes the date, the letter T as a separator, the time, and a timezone designator (Z for UTC).

Examples

UTC Timestamp
Output
2024-01-12T14:30:00Z
With Milliseconds
Output
2024-01-12T14:30:00.000Z

Code Examples

JavaScript
const now = new Date().toISOString();
console.log(now); // "2024-01-12T14:30:00.000Z"
Python
from datetime import datetime, timezone
print(datetime.now(timezone.utc).isoformat(timespec='seconds') + 'Z')

💡 Tips

  • The "Z" stands for Zulu time (UTC)
  • The "T" separates date from time
  • Most robust format for data exchange

⚠️ Common Pitfalls

  • Don't omit the "T" or "Z" in standard APIs
  • Some parsers require exactly 3 millisecond digits