Date Validation Regex (ISO 8601)

Example:
^\d{4}-\d{2}-\d{2}$ Matches: ✓ 2026-01-11 ✓ 1999-12-31 ⚠ 2026-13-99 (invalid but matches)
Validate ISO 8601 dates (YYYY-MM-DD): ^\d{4}-\d{2}-\d{2}$
Try Regex Lab →

FAQs

Does this validate actual dates?

No, it only checks format. For real date validation (no Feb 30), use Date parsing in your programming language.