Skip to main content
Regexflux

European Date Format (DD/MM/YYYY)

beginner

Matches dates in European DD/MM/YYYY format.

dateeuropeanformatvalidation

Pattern

/(?:0[1-9]|[12]\d|3[01])/(?:0[1-9]|1[0-2])/\d{4}/g

Try It

0 of 6 strings matched

Explanation

Matches day (01-31), month (01-12), and 4-digit year separated by forward slashes in the European date format.

Test Strings

Matching

  • 15/01/2024
  • 31/12/2023
  • 30/06/1999

Non-matching

  • 32/01/2024
  • 15/13/2024
  • 5/1/2024

Language Compatibility

LanguageSupport
JSFull support
PYTHONFull support
JAVAFull support
PHPFull support
GOFull support

Code Snippets

const regex = /(?:0[1-9]|[12]\d|3[01])\/(?:0[1-9]|1[0-2])\/\d{4}/g;
const text = "your text here";
const matches = text.match(regex);
console.log(matches);

Common Variations

With dots

(?:0[1-9]|[12]\d|3[01])\.(?:0[1-9]|1[0-2])\.\d{4}

DD.MM.YYYY format common in Germany

Related Patterns