Date to Timestamp Converter
Pick a date and time — get the Unix timestamp in seconds, milliseconds and ISO 8601 instantly. Nothing leaves your browser.
Current Unix timestamp (seconds)
Milliseconds: —· UTC: —
Timestamp to Date
Date to Timestamp
How to convert a date to a timestamp
A Unix timestamp is the number of seconds since00:00:00 UTC on 1 January 1970. Use the Date to Timestamp box above to pick the date and time you care about; the converter returns the timestamp in both seconds and milliseconds, plus the ISO 8601 string, so you can paste whichever format your system needs.
Common uses
Setting an expiry date for a JWT or cache entry, seeding a database created_atcolumn, building a cron trigger, or debugging why a scheduled job fired at the wrong moment — all of these come down to producing the right integer from a human date.
FAQ
Seconds or milliseconds — which should I use?
JavaScript and Java default to milliseconds; Linux, MySQL, Python's time.time()and most REST APIs use seconds. This converter shows both so you can copy the right one.