https://devtools.solutions/tools/datetime/date-to-unix.html

Date to Unix Timestamp

Convert a human-readable date and time to its Unix timestamp (seconds since 1970-01-01T00:00:00Z).


    

Frequently Asked Questions

Can I convert a date to Unix time?

Yes. Select a date/time value and click Date to Unix to get the corresponding seconds and milliseconds epoch values.

Can I convert a Unix timestamp back to a date?

Yes. Use the Timestamp Converter page to convert a Unix timestamp to a human-readable date.

Does timezone affect the output?

Yes. The conversion uses your local browser timezone unless you enter a UTC date string explicitly.

Example input/output

Input: 2024-05-20T17:43:42Z

Output: 1716219822

How it works

This tool uses Date.parse() to parse the input date string, then divides by 1000 to convert from milliseconds to seconds (Unix epoch). Processing runs in your browser.

Common use cases

Related tools