Date to Unix timestamp
Pick a date and time using the date picker to get the corresponding Unix timestamp in seconds and milliseconds. The conversion respects your local timezone.
MODE
How it works
The date picker gives a local wall-clock time. The tool builds a Date from it in your browser's time zone, whose offset and daylight saving rules come from the IANA database built into the browser, then reads getTime() for milliseconds and divides by 1000 for seconds. For example, midnight on 1 January 2026 in Europe/London (UTC+0 in winter) is 1767225600.
Processing runs in your browser
Timestamps are converted entirely in your browser tab. Our servers are not involved at any point.
Related operations
For working out the gap between any two dates, try the date calculator. To find an exact age in years, months, and days, use the age calculator. For aligning timestamps across regions, see the timezone converter.
Frequently asked questions
- Is the conversion in UTC or local time?
- The date picker uses your local timezone, so the resulting timestamp reflects the chosen date/time in your timezone. The tool also displays the equivalent UTC time for reference.
- What is the difference between seconds and milliseconds?
- Unix timestamps are traditionally in seconds. JavaScript's Date.now() returns milliseconds. Many APIs and databases use seconds, divide by 1000 if needed.
- Can I include seconds?
- The date picker works to the minute, so the timestamp is a whole minute. Add the seconds to the result yourself, or enter the exact value on the Unix timestamp to date page to check it.
- Which dates can I convert?
- Any date the picker accepts, including five- and six-digit years, within the JavaScript Date range of about 273,000 years either side of 1970. Dates before 1970 give negative timestamps.
Last reviewed September 30, 2026
Other pages for this tool
Related tools
- Background reading: Complete guide to time tools