i tried almost a week to figure out how to insert a hyphen after successful date entry ,in my form validation, but couldnt find appropriate intrinsic event and logic.
help me out..

eg:
when the user enters 26 the script automatically inserts '-' since 26 is a valid date.
Next,when he enters month say 03 ,the script inserts '-' since 03 is a valid month.
repeat the same for date too.

Makes sense, what if 30 is entered and then a 02? You cant get 30th of February? So will you have some sort of validation?

i m looking for such a good validation technique...

yes you are right!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.