Check whether text follows a zero-padded ISO-style calendar date shape.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The pattern matches a selected layout such as YYYY-MM-DD with fixed separators and digit counts. It checks lexical shape only; a date parser is needed for leap days and month lengths.
iso
Date Regex (iso):
^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])$
ISO 8601 date format (YYYY-MM-DD)
Examples:
2024-01-15
2023-12-31
API fields, date-prefixed filenames, and log filters check ISO date text.