logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Ralf
    • Posted on Thu 7 Mar 2002

    You don't need an additional line: Just add "\." in the second line of DateComponents().

    So, use "var datePat = /^(\d{1,2})(\/|-\.)(\d{1,2})\2(\d{2}|\d{4})$/;" instead of "var datePat = /^(\d{1,2})(\/|-)(\d{1,2})\2(\d{2}|\d{4})$/;".

    Regards - Ralf

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: