Monday 13 January 2014

Regular expression to validate Date in mm/dd/yyyy format


ValidationExpression="^(?:(?:(?:0?[13578]|1[02])(\/|-|\.)31)\1|(?:(?:0?[1,3-9]|1[0-2])(\/|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:0?2(\/|-|\.)29\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:(?:0?[1-9])|(?:1[0-2]))(\/|-|\.)(?:0?[1-9]|1\d|2[0-8])\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$"

http://www.freeformatter.com/regex-tester.html#documentation

5 comments:

  1. This is very helpful information for newcomers. Thanks for sharing this great information. I am a gamer and I would like to suggest to you an auto-clicker which is really interesting.
    Autoclicker

    ReplyDelete
  2. Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. am the gamer one and visit several site for gaming update out of that here is the 1 site which gives good gaming content Visit here
    visit here

    ReplyDelete
  3. Your blog has very great information which is very helpful for newcomers also reliable to new readers. Thanks for this great article. I am a gamer and I also have something for you.

    ReplyDelete
  4. Hey,
    I read your post. really great article. It's provides good and useful information and it is really helpful for the new genration. its a very interesting. I have also intersting for you. May be you like it,
    visit here

    ReplyDelete
  5. Hey,
    Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. I would like to suggest youvisit here

    ReplyDelete