Start Javascript function for validating date

Javascript function for validating date

function Validate Form(ctrl) //-------------------------------------------------------------------------- //This function verifies if the start date is prior to end date.

There are so many problems with users not entering the date in mm/dd/yyyy, even when it is specifically stated on the screen.

Tom Flynn from Sun Gard Higher Education and Jeralee Seaburn from Hercules Tire share the Java Script to do this validation.

By Tom Flynn, Sun Gard Higher Education, and Jeralee Seaburn, Hercules Tire Problem: Started in a Focal Point post, the question is, how to validate Date (calendar) controls in a guided ad-hoc HTML page?

The time field will allow input starting with 'hh:mm' following by an optional 'am' or 'pm'. The code behind the form is as follows: For each field in the form (first the dates, then the time field), a check is made as to whether the input is blank.