Docs
Browse Docs
Field guide · Dates and times

Impossible dates

A value is shaped like a date but names a day that does not exist or could not have happened.

What it looks like

Before
start_dateend_datecheck
2024-02-302024-03-15·
2023-02-292023-03-10·
2024-05-012024-04-01·
2024-06-032024-06-20·
After
start_dateend_datecheck
2024-02-302024-03-15start date does not exist
2023-02-292023-03-10start date does not exist, 2023 is not a leap year
2024-05-012024-04-01end is before start
2024-06-032024-06-20valid
The values are flagged, not changed. Moving February 30 to the last day of February would be a guess.

How it happens

  • The date was typed into a free text field that checks nothing.
  • Day and month were swapped, or a digit was mistyped, producing a month above twelve or a day past the end of the month.
  • Each date was valid when entered, but two related dates were filled in separately and nobody compared them.

What it breaks

  • Strict software rejects the row. Lenient software quietly rolls the date forward into the next month or loads it as empty.
  • Durations come out negative, and ages or tenures become absurd.
  • Records with a future date drop out of reports that look at the period up to today.

How to spot it

  • Parse the column strictly and list every value that fails.
  • Check ranges against what the column means: birth dates in the future, events before the organization existed.
  • Compare related dates on the same row. An end before a start, or a shipment before an order, is a sign.

How to fix it

  • Separate dates that cannot exist from dates that exist but are implausible. They have different causes.
  • Correct only where the intent is clear from other evidence, such as a matching date elsewhere on the row.
  • Leave the rest flagged for a person. The true date is not in the cell, and any automatic repair invents one.

TermsValidation, Validity, Business rule, Human review

Karg checks for many of these when it profiles a file, applies the fixes it is confident about, and sets the rest aside for your review. See how it works, or have our team clean your data for you.