Regular Expressions 101

Date and time format - ISO 8601

Open Workspace
  • JavaScript
  • Substitution
7

Regular Expression

/
\d{4}(.\d{2}){2}(\s|T)(\d{2}.){2}\d{2}
/
g

Description

Matches ISO 8601 date formats

Submitted by Ettienne