Thread: Date validation
View Single Post
  #1 (permalink)  
Old February 9th, 2004, 06:27 PM
Raul Raul is offline
Authorized User
 
Join Date: Jan 2004
Location: , , .
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default Date validation

function doDateCheck(FchIni, FchFin)
{
if (Date.parse(FchIni.value) <= Date.parse(FchFin.value))
{
alert("The dates are valid.");
}

How do I make it so if FchIni is < todays date an alert will fire? Is there an equivalent like the data() function in VB?

Reply With Quote