By Relwick · Published
An export contains a long number where you expected a date. A conversion produces January 1970 even though the record is much newer.
The unit may be wrong, but the plausible explanation still needs confirmation from the source format.
Quick answer & key takeaways
A date unexpectedly appearing in 1970 may come from interpreting Unix seconds as milliseconds. Confirm the source system’s timestamp definition before converting anything; a long number could also be an identifier or another date encoding. Preserve the original value, convert with the documented unit and time-zone interpretation, and verify the resulting calendar date against the source record.
- A numeric value needs a documented meaning and unit.
- Seconds and milliseconds differ by a factor of one thousand.
- Confirm the resulting calendar date before using it as an age input.
Identify what the number represents
Inspect the export instructions, field definition, or original application display. Determine whether the column represents a timestamp, spreadsheet serial, record identifier, or something else. Digit count can suggest a possibility but does not establish the encoding.
Keep an untouched copy of the export while investigating. Do not rewrite the whole column after one conversion looks plausible. Check several records with independently known dates, especially when a file combines data from different systems.
Compare seconds and milliseconds
MDN describes Unix time as commonly counted in seconds from the Unix epoch, while web-platform timestamps use milliseconds. JavaScript’s numeric Date input uses milliseconds. Confusing those units can place a modern seconds value close to the beginning of 1970.
| Illustrative interpretation | Result in UTC |
|---|---|
| 1,704,067,200 interpreted as milliseconds | 20 January 1970, 17:21:07.200. |
| 1,704,067,200 seconds converted to milliseconds | 1 January 2024, 00:00:00.000. |
| The same number used as a record identifier | No date conversion is justified. |
The two timestamp results were checked with JavaScript Date. The example explains a unit error; it does not establish the meaning of any particular uploaded export or personal record.
Recover the intended calendar date
After confirming the unit, determine which time zone the source uses when displaying the date. A timestamp represents an instant, while a birth date usually represents a calendar date. Converting an instant to a local date can cross a day boundary.
If the source originally stored only a birth date and later encoded it as a timestamp, use the documented conversion convention to recover it. Do not add a day merely because another view differs; that could hide a second unit or time-zone mistake.
When the source cannot explain the encoding, keep the uncertainty visible and obtain a clearer export. A tidy ISO-looking date produced by guessing is still unreliable input.
Calculate from the verified date
Age on a date accepts complete calendar dates, not raw Unix numbers. Enter the verified birth and reference dates and inspect the displayed inputs before calculating. The tool cannot infer the unit of an external numeric export.
Keep the source value and conversion notes with your working records so that another person can reproduce the interpretation. For a separate day-shift symptom, review the time-zone conversion guide before changing the recorded date.
Frequently asked questions
Does a 1970 result always prove a seconds-versus-milliseconds error?
No. It is a useful diagnostic possibility, but the source value and encoding still need confirmation.
Should I multiply every long numeric date by one thousand?
No. Do that only when the source is documented in seconds and the destination expects milliseconds.
Can the age tool read a Unix timestamp directly?
No. Recover and verify the intended complete calendar date first.
Sources and further reading
- MDN: Unix time — Explains Unix seconds and the millisecond timestamps used on the web platform.
Summary
Resolve the number’s meaning before doing arithmetic. The right unit and date convention matter more than whether the converted value looks plausible.