Extract dates

Find dates in text. Calendar-valid matching rejects impossible dates and flags an ambiguous day/month order; pattern-only matching remains available.

Input: TextResult: Text

Text input

Run to see the result

Examples

A leap-day deployment

Input

Deployed 2024-02-29; next review 2024-03-01.

Expected answer

2024-02-29
2024-03-01
Display total
Off
Date matching
Calendar valid (flag ambiguity)
1900 is not a leap year; 2000 is

Input

Archive: 1900-02-29, 2000-02-29, 2023-02-29, 2023-03-01.

Expected answer

2000-02-29
2023-03-01
Display total
Off
Date matching
Calendar valid (flag ambiguity)
Reject February 31 without losing March 1

Input

Invoice due 2024-02-31; corrected to 2024-03-01.

Expected answer

2024-03-01
Display total
Off
Date matching
Calendar valid (flag ambiguity)
Accept consistent separators only

Input

2024/02/29 | 29.02.2024 | 2024-02/29 | 2024 02 29

Expected answer

2024/02/29
29.02.2024
2024 02 29
Display total
Off
Date matching
Calendar valid (flag ambiguity)
Do not guess whether 03/04 is March or April

Input

Renewal: 03/04/2024; confirmed delivery: 13/04/2024.

Expected answer

03/04/2024 [ambiguous: 2024-04-03 or 2024-03-04]
13/04/2024
Display total
Off
Date matching
Calendar valid (flag ambiguity)

Dividers can be any of /, -, . or space

Related tools

Browse date / time tools