472,121 Members | 1,506 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

validate teh date

102 100+
how do i validate the date inserted from textbox to check whether that is follow the date requirement... i wrote this...

if not (isnumeric(inserteddate)) then
if isdate(inserteddate) then
inserteddate = DateDiff("S", "01/01/1970 00:00:00", inserteddate) else
response.write "Date Invalid"
exit function
end if
end if

but is never work!!!!!!!!!!!!!!!!!!!!!!!!!
Jun 20 '07 #1
1 1160
lyealain
102 100+
also ..if i get 2 dates from different textbox... how do i compare the date.. date A cannot be more than date B...
Jun 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Alexandre | last post: by
5 posts views Thread by Andrew | last post: by
6 posts views Thread by RSB | last post: by
4 posts views Thread by Michel Posseth [MCP] | last post: by
3 posts views Thread by samuelberthelot | last post: by
2 posts views Thread by Mick Walker | last post: by
5 posts views Thread by shapper | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.