Extracts a calendar-validated date from raw OCR receipt text. Rejects dates that fail a Date round-trip (31/02, 29/02 in non-leap years, etc.).
Date
Raw OCR text to search for a date string.
Formatted YYYY-MM-DD date string, or false when no valid date is found.
false
Extracts a calendar-validated date from raw OCR receipt text. Rejects dates that fail a
Dateround-trip (31/02, 29/02 in non-leap years, etc.).