Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Date & Time
#date
#european
#dd/mm/yyyy
#eu

Date (European Format)

Matches a European-style date in DD/MM/YYYY, DD.MM.YYYY, or DD-MM-YYYY format.

European formsDate input validationLocalized apps
/
/
Safe
Test String
3 matches
(…)Group #1Capturing group — captures matched text for reuse or extraction
0?0'0' — literal character — repeated zero or one time (optional) · ? — zero or one time (optional)
[…]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
[…]Character class […]Matches any single character listed in this set
..'.' — literal character
\-\-\- — escaped character
\/\/\/ — escaped character
(…)Group #2Capturing group — captures matched text for reuse or extraction
0?0'0' — literal character — repeated zero or one time (optional) · ? — zero or one time (optional)
[…]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
[…]Character class […]Matches any single character listed in this set
..'.' — literal character
\-\-\- — escaped character
\/\/\/ — escaped character
(…)Group #3Capturing group — captures matched text for reuse or extraction
\d{4}digit\d — digit (0–9) — repeated exactly 4 times · {4} — exactly 4 times
Pattern: 59 charsInput: 30 chars
100% client-side · private

Valid Examples

  • 15/01/2024
  • 31.12.1999
  • 7-3-2024

Invalid Examples

  • 01/13/2024
  • 00/15/2024
  • 2024/01/15

Usage & Integration

Validate Date (European Format) natively in your backend or frontend without copying regex strings.

Node / Edge

import { validate } from '@regexto/validators';

validate('date-eu', '...');

Python

from regexto_validators import validate

validate("date-eu", "...")

Go

import "github.com/regex-to/validators-go"

valid, err := validators.Validate("date-eu", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('date-eu', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("date-eu", "...").unwrap();