Founding customers: 10 free pilots in 2027. See the offer

Legacy schema traps · Dates and time

Why are dates stored as numbers in my old ERP?

Many older systems store dates as integers or text, in formats such as YYYYMMDD or CYYMMDD. 1240315 means 15 March 2024 if the first digit is a century flag; as a plain number it sorts and compares wrongly.

Run the free schema checkFree · five minutes · only schema and aggregates leave you

What it looks likeIllustrative

ORDHDR.ORDDATE=1240315 means 15 March 2024 (century digit 1, then YYMMDD).

All table and column names are invented.

Why reports and AI agents get it wrong

It sorts or compares the raw numbers, or does not recognise them as dates at all.

A first check you can run

Numeric columns with names that suggest dates, and their minimum and maximum values.

Read-only and on the catalogue or aggregates: it looks at structure and value counts, not at individual records.

How Janus Works handles it

The format is detected from the values and confirmed; tools return real dates.

Every number verified against your own screens. Deviations shown, never hidden.

Run the free schema checkFind the traps in your own database. Free schema check, five minutes.