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

Date (US Format)

Matches a US-style date in MM/DD/YYYY format.

US address formsAmerican date input fieldsLegacy system integration
/
/
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
11'1' — literal character
[…]Character class […]Matches any single character listed in this set
\/\/\/ — 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
[…]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
\/\/\/ — 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: 49 charsInput: 30 chars
100% client-side · private

Valid Examples

  • 01/15/2024
  • 12/31/1999
  • 3/7/2024

Invalid Examples

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

Usage & Integration

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

Node / Edge

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

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

Python

from regexto_validators import validate

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

Go

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

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

PHP

use RegexTo\Validators\Validator;

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

Rust

use regexto_validators::validate;

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