Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocs
Date & Time
#date
#iso
#time
#datetime

ISO 8601 Date

ISO 8601 date format (YYYY-MM-DD) with month and day range validation.

API date field validationDatabase date input parsingLog timestamp parsing
/
/
Test String
3 matches
\d{4}digit\d — digit (0–9) — repeated exactly 4 times · {4} — exactly 4 times
--'-' — literal character
(?:…)Non-capturing groupNon-capturing group — groups without capturing (no index assigned)
00'0' — literal character
[…]Character class […]Matches any single character listed in this set
||| — alternation: matches expression on left OR right
11'1' — literal character
[…]Character class […]Matches any single character listed in this set
--'-' — literal character
(?:…)Non-capturing groupNon-capturing group — groups without capturing (no index assigned)
00'0' — literal character
[…]Character class […]Matches any single character listed in this set
||| — alternation: matches expression on left OR right
[…]Character class […]Matches any single character listed in this set
\ddigit\d — digit (0–9)
||| — alternation: matches expression on left OR right
33'3' — literal character
[…]Character class […]Matches any single character listed in this set
Pattern: 47 charsInput: 32 chars
100% client-side · private

Valid Examples

  • 2024-01-15
  • 1999-12-31
  • 2000-02-29

Invalid Examples

  • 2024-13-01
  • 01-01-2024
  • 2024/01/15
  • 20240115