Validating date using javascript

Solution: Tom Flynn from Sun Gard Higher Education provided the following Jave Script, which helped resolving the issue, so many thanks to Tom!

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

When getting a date, without specifying the time zone, the result is converted to the browser's time zone.

Problem: Started in a Focal Point post, the question is, how to validate Date (calendar) controls in a guided ad-hoc HTML page?

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

It does not check for leap years or invalid dates at the end of short months.

As we've seen before, creating re-usable functions can significantly reduce the size of your Java Script code.

Validating date using javascript