Practical thinking about AI tools and everyday work.

Ask an AI to Extract a Date Without Letting It Invent the Year

A worker comparing an scanned document and structured data table on two screens.
AI-generated photographic illustration; not documentary photography.

A note says “meeting on 12 May.” The AI returns a neatly formatted date with a year the note never supplied. The output looks complete because the missing information has disappeared into a plausible guess.

Define what extraction means

Ask for the date as written, the source location and a separate normalised value only when the required information is supported. Permit an explicit “year not stated” result. If your system requires a complete date, route that case for review instead of forcing the model to invent one.

An illustrative output record could contain:

  • Original text: “12 May.”
  • Source: paragraph three of the supplied note.
  • Year: not stated.
  • Normalised date: unresolved.

Use documents you are authorised to process, with suitable privacy controls. A demonstration should use synthetic or approved sample material rather than exposing real personal records to an unapproved tool.

Write the ambiguity rules before testing

Decide how to handle numeric dates such as 04/05, references such as “next Friday,” ranges and dates quoted from older documents. A surrounding email timestamp may help in some tasks, but using it is an interpretation rule that should be explicit, not an invisible default.

Keep inferred information separate from extracted information. If a human reviewer resolves the year using another record, store that source and the decision rather than rewriting the original text as though it had always been complete.

Test cases that resist a tidy answer

Include missing years, conflicting dates, impossible dates and a document with no date at all. Check whether the workflow preserves uncertainty. A test containing only clear full dates will not reveal the behaviour that causes the most trouble.

Before connecting the output to reminders, bookings or deadlines, require the appropriate validation. A format-valid value can still be factually wrong.

The useful AI result is not always a completed field. Sometimes the best extraction is a precise account of what the document says—and a clear refusal to pretend it says more.