An XLSX date is 1,462 days out: check its date system

A spreadsheet extract places a record in 2027; another reading puts it in 2023. Before moving the record in your timeline, check the workbook’s date system. The same stored number can denote different calendar dates when it is counted from a different origin.

For modern Excel dates, the 1900 and 1904 systems differ by 1,462 days. That is a useful diagnostic clue, not a correction to apply to every suspicious date. First establish that the cell holds a numeric date and which system belongs to its source workbook.

Two blank calendar strips with offset starting markers and teal counters
ImageGen conceptual illustration of different starting points; the cells are not the dates or quantities in the exercise.

Keep the number attached to the workbook

An XLSX file can store a date as a serial number: whole days plus a fraction for time of day. The number format helps display that value as a date. The workbook supplies the date origin, often called its epoch. A value copied into a plain-text table can lose that context.

Microsoft documents both date systems and their 1,462-day difference. In current Windows Excel, the setting appears under File → Options → Advanced → When calculating this workbook → Use 1904 date system. Inspect the setting for the relevant workbook; do not toggle it on the received evidence file merely to see whether the result looks more plausible.

The filename, operating system or apparent age of the file is not a substitute for reading the setting. A researcher on Windows can receive a workbook that uses the other system.

Two files, one stored cell

Invented exercise: we created two small XLSX files with a sheet named Records. In both, cell A2 stores 45000.5 and uses the number format yyyy-mm-dd hh:mm. The workbook date system differs. There are no customer records, events or formulas in the exercise.

FileSystemRaw A2 numberDecoded date and time
date-1900.xlsx190045000.52023-03-15 12:00
date-1904.xlsx190445000.52027-03-16 12:00

We inspected the stored worksheet XML, then read both files with openpyxl 3.1.5 on Python 3.12.10. The raw number was identical and the two decoded values differed by exactly 1,462 days. This was a local file-generation and library-readback test, not an Excel interface test or a finding about a real record.

To reproduce the exercise with openpyxl installed, run this in an empty working folder. It creates the two teaching files, then reads their epochs and cells without modifying the saved files:

from openpyxl import Workbook, load_workbook
from openpyxl.utils.datetime import (
    CALENDAR_WINDOWS_1900, CALENDAR_MAC_1904,
)

for label, epoch in [("1900", CALENDAR_WINDOWS_1900),
                     ("1904", CALENDAR_MAC_1904)]:
    name = "date-" + label + ".xlsx"
    wb = Workbook()
    wb.epoch = epoch
    wb.active.title = "Records"
    wb.active["A2"] = 45000.5
    wb.active["A2"].number_format = "yyyy-mm-dd hh:mm"
    wb.save(name)
    check = load_workbook(name, read_only=True, data_only=False)
    print(name, check.epoch, check["Records"]["A2"].value)
    check.close()

In the created 1904 file, xl/workbook.xml carries date1904="1" on workbookPr. Microsoft’s Open XML property reference identifies that attribute. Raw XML and a library’s decoded value are different observations; retain both when the disagreement matters.

Changing the interpretation is not the same as converting the value

To represent the exercise’s first date, 2023-03-15 at noon, in a 1904 workbook, the numeric serial is 43538.5: 45000.5 − 1462. Keeping the number unchanged and changing the origin produces the second date instead. That distinction explains why “I changed the date setting” is an incomplete repair note.

For a real discrepancy, work on a separate derivative. Record the source system, target system, original serial, conversion and resulting date. Check an independently dated reference from the source material before treating the conversion as a verified event date. If a column contains a mixture of imported values, a blanket subtraction can damage rows that were already correct.

Formatting is a separate question. A code that merely looks like a date should remain a code; our CSV import guide addresses that earlier decision. A formula cell may also have a saved result that needs its own cache-versus-calculation check.

Three limits to put beside the finding

  • Representation: XLSX can also store ISO-formatted dates, and a cell can contain plain text. Do not apply serial-number arithmetic until the representation is known.
  • Early dates: the 1900 system includes Excel’s fictitious 29 February 1900. This modern-date example is not a general historical-calendar converter.
  • Time zone: noon in the decoded cell does not establish noon UTC. The date/time value itself supplies no time-zone assignment.

The openpyxl date and time documentation explains these representation and calendar limits. Keep missing context unresolved instead of completing it from your computer’s settings.

A useful timeline note includes the file hash, sheet and cell, raw number, number format, workbook date system, decoded value, reader/version and any external date or time-zone evidence. In the exercise, the supported finding is that the two workbooks interpret the same number differently. Nothing in that test establishes when a real-world event occurred. Place the interpretation and its remaining uncertainty together in your investigation report.

Author: OSINT Jet · Primary sources reviewed 30 November 2026