Tangara G

Tangara G

  • NA
  • 298
  • 94k

Need some help on the following Regular expression:

Aug 21 2016 4:10 AM
Hi,
 
 
I hope to get some help on the following regular expressions:
 
To validate the departure date field in this format : dd-mm-yyyy, whre dd is the date with 2 digits max lengths, mm is the digit value of month varying from 1 to 12 and yyyy is the year in four digits.
 
e.g. 03-03-2013
 
 
To validate the above with additional formats supported
 
dd-mm-yyyy
03/03/2013
 
 
To validate the departure time in format : hh:mmXX where hh is the 24hr format, mm in minutes and XX is either AM or PM.
e.g. 17:30PM
 
Tks

Answers (1)