RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details DateTime
Expression
^(\d{4}-((0[1-9]|1[012])-(0[1-9]|1\d|2[0-8])|(0[13456789]|1[012])-(29|30)|(0[13578]|1[02])-31)|(\d{2}[02468][048]|[13579][26])-02-29) (0[0-9]|1[0-9]|2[0-4]):(60|[0-5][0-9]):(60|[0-5][0-9])$
Description
This pattern allows for full DateTime entry using yyyy-MM-dd hh:mm:ss format.
Matches
2014-08-07 16:52:14 | 2004-02-29 00:00:59 | 1800-01-01 23:31:59
Non-Matches
2014-08-07 25:52:14 | 2004-02-30 00:00:59 | 1800-30-01 23:31:59
Author Rating: Not yet rated. Paul Delannoy
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials