Formats & Time Zones

Date To Unix Timestamp Converter

Convert a date and time into a timestamp.

--
days

--

Business Days
0
Weekend Days
0
Weeks
0.0
Total Hours
0 h

How Date To Unix Timestamp Converter Works?

The Date to Unix Timestamp Converter works by converting a local date and time to UTC and counting the seconds since January 1, 1970, 00:00:00 UTC.

  1. 1

    Enter the date and time

    Pick the date and time.

  2. 2

    Pick the time zone

    Choose the zone the date and time are in.

  3. 3

    Convert to UTC

    The converter subtracts the zone's UTC offset.

  4. 4

    Count seconds

    The result is the number of seconds since the epoch, with a milliseconds version.

Date To Unix Timestamp Converter Formula

The Date to Unix Timestamp formula is T = (UTC Date − 1970-01-01) in days × 86,400 + seconds into the day.

T = Days since epoch × 86,400 + h × 3,600 + m × 60 + s
UTC time = Local time − UTC offset
T (ms) = T × 1,000
h, m, s:
Hours, minutes, seconds (UTC)
86,400:
Seconds per day

Example: Nov 25, 2026 00:00 UTC is 20,782 days × 86,400 = 1795564800. Midnight in Tokyo (UTC+9) on the same date is 9 hours earlier: 1795532400.

Date To Unix Timestamp Converter Conversion Table

The table converts midnight UTC on 8 dates into Unix timestamps.

Date (00:00 UTC)Days Since EpochUnix SecondsUnix Milliseconds
Jan 2, 197018640086400000
Jan 1, 200010,957946684800946684800000
Jan 1, 202018,26215778368001577836800000
Jan 1, 202520,08917356896001735689600000
Jan 1, 202620,45417672256001767225600000
Nov 25, 202620,78217955648001795564800000
Jan 1, 202720,81917987616001798761600000
Jan 1, 203021,91518934560001893456000000

What is Date To Unix Timestamp Converter?

A Date to Unix Timestamp Converter is a tool that turns a calendar date and time into a Unix timestamp.

The time zone changes the timestamp. Midnight on November 25, 2026 is 1795564800 in UTC, 1795582800 in New York (UTC−5) and 1795532400 in Tokyo (UTC+9).

JavaScript and Java use milliseconds. Unix shells, PHP and Python's time.time() use seconds.

What are the uses of Date To Unix Timestamp Converter?

There are 5 main uses of the Date to Unix Timestamp Converter, including API queries, database inserts and cache expiry.

  • API queries

    Developers pass start and end timestamps to APIs.

  • Database inserts

    Developers store dates as epoch values.

  • Cache expiry

    Engineers set expiry times for cached data.

  • Scheduled jobs

    Engineers schedule tasks at an exact instant.

  • Testing

    QA teams create fixed timestamps for tests.

Related Formats & Time Zones Tools

View All 141 Tools →