Need an epoch value for an API call, a database query or a cron job? Pick a date and time and get the Unix timestamp instantly.
How to use the Date to Unix Timestamp Converter
- 1 Choose a date and time (seconds are optional).
- 2 Choose whether it is in your local time zone or UTC.
- 3 Copy the timestamp in seconds or milliseconds.
Formula
Timestamp (s) = (date − 1970-01-01T00:00:00Z) in seconds Timestamp (ms) = seconds × 1000
Worked examples
Input: 2030-01-01 00:00:00 UTC
Result: 1893456000
Milliseconds: 1893456000000
Local time vs. UTC
The same wall-clock time corresponds to different timestamps in different time zones. "Local" uses your device's time zone (including daylight saving rules); "UTC" treats the entered time as Coordinated Universal Time.
Seconds or milliseconds?
Most Unix tools, PHP and Python use seconds. JavaScript, Java and many JSON APIs use milliseconds — multiply by 1,000.
Frequently asked questions
How do I get the current Unix timestamp?
It is shown live at the top of the tool; click "Use now" to fill the form with the current time.
Does daylight saving time affect the timestamp?
The timestamp itself is DST-free, but converting a local wall-clock time depends on whether DST applied at that date.
What timestamp is 1 January 1970?
Zero, when interpreted in UTC.
Related tools
Age Calculator
Your exact age in years, months and days — plus total days, weeks, hours and a countdown to your next birthday.
Date Difference Calculator
Date difference calculator for the days, weeks, months and business days between two dates.
Add or Subtract Days Calculator
Add or subtract years, months, weeks and days (or business days) from any date.
Unix Timestamp to Date Converter
Convert Unix epoch timestamps (seconds, milliseconds or microseconds) to human-readable dates in UTC and local time.
Time Duration Calculator
Hours and minutes between two times (overnight shifts included) and add or subtract HH:MM durations.
Leap Year Checker
Check whether any year is a leap year using the Gregorian rules, with the number of days in the year and in February.