Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Validation

Status
Not open for further replies.

hayley

Programmer
Mar 14, 2001
13
GB
Hi,

I'm new to VBScript and was wondering if anyone could help with a query I have.

I have a web page in asp where the user inputs a start date and an end date in html input boxes. I would like to include code to check that the dates entered are valid. Can anyone help?

Thanks very much!
 
With serverside: use IsDate(Request.Form("startdate"))

on clientside you should use JavaScript/DHTML to block the submit when one of the values was not a date. Yours,

Rob.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top