469,948 Members | 2,904 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,948 developers. It's quick & easy.

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 1130
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
By using this site, you agree to our Privacy Policy and Terms of Use.