Human Date to Unix Timestamp

Paste any reasonable date string - `January 31, 2024`, `01/31/2024`, `Jan 31`, `2024-01-31` - and we'll guess the format and give you back a Unix timestamp.

Example: January 31, 2024 12:00 PM

Input (Human-Readable Date)January 31, 2024 12:00 PM
Unix (seconds)1706702400
Unix (milliseconds)1706702400000
ISO 8601 (UTC)2024-01-31T12:00:00Z

Common Pitfall

Note: Ambiguous dates like `01/02/2024` mean January 2 in the US and February 1 nearly everywhere else. When parsing user input, prefer ISO 8601 (`2024-01-31`) which is unambiguous.

Code Examples

Python

from datetime import datetime, timezone
int(datetime.strptime('2024-01-31 12:00:00', '%Y-%m-%d %H:%M:%S')
    .replace(tzinfo=timezone.utc).timestamp())

JavaScript

Math.floor(Date.parse('2024-01-31T12:00:00Z') / 1000)

PHP

strtotime('2024-01-31 12:00:00 UTC');

Related Conversions

Need the full converter? Open the Timestamp Converter →