|
-
Feb 19th, 2001, 09:16 PM
#1
Thread Starter
Addicted Member
Does any genious out there know? Without using OCX controls or scripting references...?
Like for e.g. "Day/Month/Year", some *stupid* users enter more than 31 days!?!
Last edited by cyberwarpy; Feb 19th, 2001 at 09:21 PM.
-
Feb 19th, 2001, 09:37 PM
#2
What are you asking? You want to know if the date is a valid one?
Code:
MsgBox IsDate("2/31/01") 'returns false
MsgBox IsDate("3/31/01") 'returns true
2/31/01 = February 31, 2001 - not a real date
3/31/01 - March 31, 2001 - real date
-
Feb 19th, 2001, 10:13 PM
#3
Thread Starter
Addicted Member
Reply...
Yep. I just want to know whether they have entered a real(valid) date in the Masked Editbox. * This feature is not there in the Masked Editbox (M$ were meant to be smart... :-))
Also, how would you do it for time in the format:
##:## (AM/PM)... ?!?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|