Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Checking date

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,897
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Checking date
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Checking date - 8/27/2003 7:06:03 AM   
  raynkel

 

Posts: 7
Score: 0
Joined: 8/27/2003
From:
Status: offline
Morning all.
I wrote this small script to check if a value entered is a date:

if (aForm.txtEND_DATE.value != "")
{
var Err = 0
var a = aForm.txtEND_DATE.Value
if not isDate(a)
{
err=1
}
}



if (err==1) {
alert("Please enter the End Date in 'mm/dd/yyyy' format");
return(false)
}
//else
//return(true)

should work, but it causes my whole function to be skipped,
What am I missing?
Thanks
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Checking date Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts