Dates & Timesflags: g
European Date Format (DD/MM/YYYY)
Match European-style dates in DD/MM/YYYY format with valid day (01–31) and month (01–12) ranges.
Try it in RegexProPattern
regexJavaScript
/(?:0[1-9]|[12]\d|3[01])\/(?:0[1-9]|1[0-2])\/\d{4}/gRaw source: (?:0[1-9]|[12]\d|3[01])\/(?:0[1-9]|1[0-2])\/\d{4}
How it works
Day alternation covers 01–31, month covers 01–12, year is any 4-digit number. Slashes are literal. Does not detect impossible combinations like 31/02/2024.
Examples
Input
15/01/2024Matches
15/01/2024
Input
31/12/1999Matches
31/12/1999
Input
32/01/2024No match
—Common use cases
- EU form date validation
- Logistics document parsing
- Legacy date format conversion
- Internationalisation tooling