Calculation Number Of Days

Instant date span, business days & live distribution

Unix Epoch Day Converter

Count UTC calendar days since January 1, 1970.

Result
—

How the Unix Epoch Day Converter Works

The Unix Epoch Day Converter returns the number of whole days between 1 January 1970 and a chosen date, the value databases call the epoch day.

  1. Enter a date

    Enter a calendar date.

  2. Count from the epoch

    The converter subtracts 1 January 1970 from the date in UTC.

  3. Read the epoch day

    The result is a whole number. Dates before 1970 return negative numbers.

  4. Get seconds

    Multiply the epoch day by 86,400 for the Unix timestamp at midnight UTC.

How the Count Is Calculated

The Unix Epoch Day formula counts days from 1970-01-01.

Epoch day = Date − 1970-01-01
Unix timestamp (midnight UTC) = Epoch day × 86,400
Epoch
1 January 1970, 00:00:00 UTC.
Epoch day
Whole days since the epoch.
86,400
Seconds per day.

Example: 4 December 2026 is epoch day 20,791, and the Unix timestamp at midnight UTC is 20,791 × 86,400 = 1,796,342,400.

Worked Examples

The table lists epoch days and midnight timestamps for reference dates.

Date (UTC)Epoch dayUnix timestamp
1 Jan 197000
1 Jan 200010,957946,684,800
9 Sep 200111,5741,000,000,000 (01:46:40)
1 Jan 202620,4541,767,225,600
4 Dec 202620,7911,796,342,400
19 Jan 203824,8552,147,483,647 (03:14:07)

What the Tool Measures

A Unix Epoch Day Converter is a tool that turns a calendar date into a day count from 1 January 1970.

Signed 32-bit Unix timestamps overflow at 03:14:07 UTC on 19 January 2038, epoch day 24,855. Systems that store time in 64 bits avoid the "Year 2038 problem".

When to Use This Tool

There are 4 main uses of the Unix Epoch Day Converter, including database partitions and API debugging.

  • Database partitions

    Data teams partition tables by epoch day.

  • API debugging

    Developers check date fields sent as epoch days.

  • Excel and SQL imports

    Analysts convert epoch days into readable dates.

  • Y2038 audits

    Engineers check how close stored values are to the 32-bit limit.