Skip to main content
Regexflux

Date & Time Regex Patterns

Patterns for parsing and validating dates, times, timestamps, durations, and time zones.

10 patterns

Matches dates in European DD/MM/YYYY format.

JSPYTHONJAVAPHPGO

Matches dates in YYYY-MM-DD format following ISO 8601.

JSPYTHONJAVAPHPGO

Matches dates with written month names like 'January 15, 2024' or '15 Jan 2024'.

JSPYTHONJAVAPHPGO

Matches common relative date expressions like 'yesterday', '3 days ago', 'next week'.

JSPYTHONJAVAPHPGO

Matches dates in American MM/DD/YYYY format.

JSPYTHONJAVAPHPGO
ISO 8601 DateTimeintermediate

Matches full ISO 8601 datetime strings including time and timezone.

JSPYTHONJAVAPHPGO
ISO 8601 Durationintermediate

Matches ISO 8601 duration strings like P1Y2M3DT4H5M6S.

JSPYTHONJAVAPHPGO

Matches time in 12-hour format with AM/PM indicator.

JSPYTHONJAVAPHPGO
24-Hour Timebeginner

Matches time in 24-hour format (HH:MM or HH:MM:SS).

JSPYTHONJAVAPHPGO

Matches Unix timestamps (seconds or milliseconds since epoch).

JSPYTHONJAVAPHP