TOOLTIKI Lovable tool, really free
Date & time Timestamps

Date to Excel serial number

Value
Direction
Epoch system
Result 45292
Readable Mon, 01 Jan 2024 00:00:00 GMT
ISO 8601 2024-01-01T00:00:00.000Z
JavaScript Date Mon Jan 01 2024 00:00:00 GMT+0000 (Coordinated Universal Time)
Date only 2024-01-01
Time only (UTC) 00:00:00
Unix seconds 1,704,067,200
Unix milliseconds 1,704,067,200,000
Windows FILETIME 133,485,408,000,000,000
.NET ticks 638,396,640,000,000,000
Excel serial 45,292
Mac HFS+ seconds 3,786,912,000
Note Excel counts 1900 as a leap year, which it was not. Dates before 1 March 1900 are off by one.
Local · dates before 1 March 1900 are off by one
Advertisement
320 × 100

Converts a date into the serial number Excel stores it as — days since 0 January 1900, with the time as a fraction of a day.

How to use the date to excel serial number

1 Paste a date — ISO 8601, "2024-01-01 12:00:00", or the string a JavaScript Date prints.
2 Switch the direction to go the other way — the same page converts both ways.
3 All times are UTC — convert to your own zone separately if you need local time.

Excel stores a date as a number of days and shows you a date through formatting, which is why changing a cell’s format turns 45292 into 1 January 2024 and back. The fractional part is the time: 0.5 is midday, 0.75 is six in the evening. That is also why subtracting two dates gives a number of days directly, and why multiplying a time difference by 24 gives hours.

The famous bug is real and deliberate. Excel treats 1900 as a leap year, which it was not — the rule skips century years unless they divide by 400. Lotus 1-2-3 had the bug in 1983, and Microsoft copied it for file compatibility rather than break every existing spreadsheet. The consequence is that serial 60 is 29 February 1900, a day that never existed, and every date before 1 March 1900 is off by one. Dates after that are correct, which is why almost nobody notices.

The Mac version of Excel historically used a different epoch — 1904 rather than 1900 — and files created under it can still be encountered. A spreadsheet whose dates are all four years and one day out has come from that system, and the workbook has a setting to switch.

When importing, the trap is that a CSV has no formatting, so a column of serials arrives as plain numbers. Excel guesses, and it guesses inconsistently — which is why 01/02/2024 is a famous source of ruined data and why serial numbers, ironically, are the safer thing to exchange.

Questions

The time as a fraction of a day. 0.5 is midday, 0.75 is 6 pm.

Microsoft — Excel incorrectly assumes 1900 is a leap yearMicrosoft — date systems in Excel
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING