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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Full Date with Abbreviated Month
Expression
(?i)^((((0[1-9])|([12][0-9])|(3[01])) ((JAN)|(MAR)|(MAY)|(JUL)|(AUG)|(OCT)|(DEC)))|((((0[1-9])|([12][0-9])|(30)) ((APR)|(JUN)|(SEP)|(NOV)))|(((0[1-9])|([12][0-9])) FEB))) \d\d\d\d ((([0-1][0-9])|(2[0-3])):[0-5][0-9]:[0-5][0-9])$
Description
Validates datetimes in an internationally resilient form that is still readable by the average person.
Matches
01 JAN 2006 13:00:00
Non-Matches
31 FEB 10 03:00:00 PM
Author Rating: Not yet rated. Simon Gill
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Leap Years
Name: Michael Ash
Date: 10/11/2006 10:45:23 AM
Comment:
Pretty good but doesn't handle leap years.


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