Convert a Date to a Unix Timestamp
Convert a calendar date and time to a Unix timestamp in seconds. Enter a date, choose a timezone and copy the epoch value.
Part of the free Unix Timestamp Converter. Runs in your browser — nothing is uploaded.
Convert a Date to a Unix Timestamp
Need the timestamp for a specific date, such as a launch time or a cache expiry? Enter the date and time and the tool returns the Unix timestamp in seconds, ready to paste into code or a database query.
Worked example: A UTC date to epoch seconds
Date (UTC, ISO 8601)
2026-01-01T00:00:00Z
Unix timestamp
1767225600
Practical tip
Be explicit about timezone. 2026-01-01 00:00 in New York and in Tokyo are different timestamps nearly a day apart.
How to use this Unix Timestamp
- 1Use the live tool above — it runs entirely in your browser and never uploads your data.
- 2Paste the sample from the worked example, or use your own input.
- 3Copy the result, then adapt the same steps in your editor, script, or pipeline.
Convert a Date to a Unix Timestamp FAQs
Does the timestamp change with daylight saving time?
No. The timestamp for an instant never changes. Only the local date and time that map to it shift when clocks change.
Is the result in seconds or milliseconds?
Seconds, which is the classic Unix format. Multiply by 1000 for JavaScript's Date, which uses milliseconds.
More Unix Timestamp pages
- Epoch to Date ConverterConvert an epoch or Unix timestamp to a readable date and time. Paste seconds or milliseconds and get UTC and local time instantly.
- Milliseconds Timestamp to DateConvert a 13-digit millisecond Unix timestamp to a readable date. Works for JavaScript Date.now() and Java System.currentTimeMillis() values.
- Current Unix TimestampGet the current Unix timestamp in seconds and milliseconds. See how to read epoch time now in JavaScript, Python, Bash and SQL.
- Convert Epoch to UTCConvert an epoch timestamp to a UTC date and time. See the ISO 8601 string and avoid local-timezone confusion when reading logs.
- What Date Is Unix Timestamp 1000000000?Unix timestamp 1000000000 is the "billennium": the moment epoch time reached one billion seconds. See the exact date and how to convert any timestamp.
- Year 2038 Problem and Timestamp 2147483647Timestamp 2147483647 is the largest 32-bit signed Unix time. Convert it to see the date and learn how to avoid the Year 2038 problem.
- Unix Timestamp to ISO 8601Convert a Unix timestamp to an ISO 8601 string like 2026-01-01T00:00:00Z. Ideal for APIs, JSON payloads and logging formats.
- Convert a Unix Timestamp to a Date in JavaScriptConvert a Unix timestamp to a Date in JavaScript with new Date(ts * 1000). Check your result with the live converter and avoid the seconds vs milliseconds trap.
- Convert a Unix Timestamp in SQLConvert Unix timestamps to dates in MySQL with FROM_UNIXTIME and in PostgreSQL with to_timestamp. Verify the expected value with the converter.