Skip to content

Instantly share code, notes, and snippets.

@MarceloZapatta
Created September 9, 2019 17:55
Show Gist options
  • Select an option

  • Save MarceloZapatta/04d47e4ecbf5e64c13d26d98354eb7a4 to your computer and use it in GitHub Desktop.

Select an option

Save MarceloZapatta/04d47e4ecbf5e64c13d26d98354eb7a4 to your computer and use it in GitHub Desktop.
Regex for datetime Brazil format
// 24/12/1999 15:59
^(0[1-9]|[12][0-9]|3[01])\/(0[0-9]|1[0-2])\/[1-9][0-9]{3} ([0-1][0-9]|2[0-4])\:([0-5][0-9])$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment