New Tool Radar

AI for Data & Spreadsheets

How to Verify Dates an AI Tool Extracted Against the Source Document

Compare each date an AI tool pulled from a document with the date on the source page, watching for day-month swaps.

Schematic with three steps: Confirm the source date order; Compare each extracted date with the source; Convert the checked dates to real date.

Dates are the easiest values for an extraction to get wrong without looking wrong: 03/04 can mean 3 April or 4 March, and a wrong reading still looks like a valid date. Check each extracted date against the source, and confirm which order the source uses for day and month.

What you need

  • The source document with its dates
  • The extracted dates in a sheet
  • A note of the date format the source uses

Step 1: Confirm the source date order

Find one date in the source where the day is above 12, so the order is unambiguous, and note whether the source writes day-month or month-day. Write the order down; every check below depends on it.

Step 2: Compare each extracted date with the source

Read each extracted date against the source date on the same row or record. Mark any date that differs, and mark any date where the day and month could have been swapped.

Step 3: Convert the checked dates to real date values

Make sure the checked dates are real date values in the sheet, not text. Sort the column and look for dates that fall outside the expected range, which is a sign of a swapped or misread date.

Worked example: synthetic eight-date extract

The table below is a synthetic example. It shows the expected result of checking extracted dates; no document was read and no extraction was run.

Check Count Result
Dates extracted 8 Source has 8 dates
Dates matching the source 7 Pass
Dates differing 1 03/04 read as 3 April
Source order Day-month 4 March is correct

Expected result (UNTESTED). 7 of 8 extracted dates match the source; one date was read as 3 April when the source, in day-month order, says 4 March. Correct it and re-check any other date where the day is 12 or below. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Dates stored as text do not sort or filter as dates; convert them with DATEVALUE after checking.
  • A date written as 03/04/26 is ambiguous on its own; only the source order resolves it.
  • Time zones and locale settings can shift a date by a day when a file is reopened elsewhere.

Sources

See all