dwdata 0 Light Poster

Does someone have or can they direct me to a javascript which will display an alert message when a date is not entered correctly. MM/DD/YYYY. I do not need an alert message if they clear the field - validate only if there are characters in the field.

After is there a function that would convert that string into a valid mySQL date string, so I can insert it into a DB field.

Thanks!