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

I think this works. I didnt know you had to instantiate the date first.
var dt = new Date();
if (Date.parse(FchIni.value) <= dt)
       {
        alert("Message");
        form.FchIni.focus();
        return(false);
    }

Reply With Quote