Regular expression for validating date javascript


Everyone must have filled an online form at some stage, a form usually asks for information related to name, phone no, address, credit-card no etc.

Incase you didn't provide information in the format specified by the form field or leave it empty, the message will appear and form cannot be submitted until you get it right.

This article covers the basics and recommends where to go to learn more. I hope it will also make a handy reference/refresher for developers who have used regular expressions before, in conjunction with my regular expression cheat sheet.

This article is designed for beginners with little or no experience with regular expressions, but who are familiar with ASP. In this article, I will discuss: If you have questions about this article or regular expressions in general, I invite you to ask them on the regex mailing list at which as I'm writing this has over 350 subscribers.

The area code may have a parentheses around the area code, and dashes or spaces seperating the numbers in the subscriber number. @ : To check for @ symbol required in the email address.(([\-\w] )\.?

) : username can consists of more than one set of word characters seperated by a single dots. ) : The email server name is similar to user name as well.

NET Framework is first-class, and even just within Microsoft® ASP.


In this tutorial, we discussed how you can perform Java Script date validation in 1. dd, mm and yyyy) and check whether dd is a valid date, mm is a valid month or yyyy is a valid year.

This is done using a Javascript program on the client side, the Javascript program uses a regular expression pattern to test the input of each form field.


  1. Pingback:

  2. eric   •  

    Once you register, you will receive an email from us. You cannot post until we have reviewed and approved your registration.

  3. eric   •  

    Totally Free Cam is highly recommended if you enjoy watching and chatting with friendly (and often kinky) girls.

  4. eric   •  

    Our free online meeting rooms allow you to talk to other sexy members anonymously, either in a group conversation or private one to one message.

  5. eric   •  

    You should always be yourself and be honest, because that will give you the best chance of meeting someone with whom you may develop a relationship with.

  6. eric   •  

    Krauss made her recording debut in 1985 on the independent album, Different Strokes, featuring her brother Viktor Krauss, Swamp Weiss and Jim Hoiles.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>