New Tool Radar

AI for Data & Spreadsheets

How to Check Extracted Dates Are in the Right Format in a Spreadsheet

Confirm every extracted date is a real date in one format before you sort or filter by it.

Schematic with three numbered boxes: sort the column, check each format, fix the odd ones.

AI extraction can return dates in mixed formats, such as 2026-03-02, 02/03/2026 and 2 Mar 2026, and a spreadsheet may read some as text and others as dates. Mixed formats break sorting and filtering. Check every date is a real date in one format before you use the column.

Checked on 2026-11-29. We did not run any tool for this guide. Every result below is an expected result, marked UNTESTED, for you to confirm on your own files.

Prerequisites

  • The extracted table with a date column
  • The date format you want, for example YYYY-MM-DD
  • A way to sort the date column

Steps

1. Sort the date column

Sort the column and look for values that land at the top or bottom out of order; those are usually text, not dates.

Expected result: Out-of-order values are listed, or the column sorts cleanly.

2. Check the format of each value

Click a few cells and read the format. All dates should share one format.

Expected result: Each sampled cell shows the same format, or the odd ones are listed.

3. Fix the odd values

Change text dates into real dates with the same format, and fix any day-month swaps.

Expected result: All dates share one format and sort in order.

4. Re-sort and confirm

Sort the column again and confirm the earliest and latest dates are right.

Expected result: The sorted column starts with the earliest date and ends with the latest.

Worked example

A practice order table has four dates. One was text and sorted out of order.

Order Date as extracted Real date?
ORD-1041 2026-03-02 Yes
ORD-1042 02/03/2026 Yes
ORD-1043 2 Mar 2026 Yes
ORD-1044 March 5 No

Expected result: Three dates are real dates and March 5 is fixed to 2026-03-05, so all four share the YYYY-MM-DD format (UNTESTED – confirm it yourself.)

Verdict table

Check Expected result Pass?
Sort the date column Out-of-order values are listed, or the column sorts cleanly. –
Check the format of each value Each sampled cell shows the same format, or the odd ones are listed. –
Fix the odd values All dates share one format and sort in order. –
Re-sort and confirm The sorted column starts with the earliest date and ends with the latest. –

Limits

  • Day-month swaps are hard to spot when both numbers are under 13; check against the source document.
  • A date that looks right can still be the wrong year; check the year on a sample.

Sources

See all