Validate date in mm/dd/yy format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pnsreee
    New Member
    • Apr 2007
    • 34

    Validate date in mm/dd/yy format

    Hi all

    I have date in mm/dd/yy format. to validate that one i am using cut and validating using if statements.

    But i want regexp.


    Please help me regarding this.
    Last edited by pnsreee; Jun 22 '07, 02:38 PM. Reason: provide information
  • prn
    Recognized Expert Contributor
    • Apr 2007
    • 254

    #2
    Hi pnsreee,

    What kind of "validation " do you want to do? Are you just trying to ensure that the date format is "valid"? (BTW, why are you using 2-digit years? Were you on another planet 8 years ago?) Or are you trying to determine whether the date actually exists? ("02/29/2100" for example?) Or are you trying to determine that it is in the future or past?

    I don't think we can help you much without knowing what conditions the "date" needs to meet in order to be "valid". I also have no idea whether a regex solution is remotely near reasonable without knowing about your validity conditions.

    Best Regards,
    Paul

    Comment

    Working...