|
-
Oct 22nd, 2002, 08:26 PM
#1
Thread Starter
Addicted Member
Date in VB
I have a text box which accepts date.
How do I check whether the date entered by the user
is within the specified range
i.e. if the user enters (dd/mm/yy) as "30/02/02"
then this is incorrect as date in feb is 28
So how do I check !!!!!!
Please somebody advise
thnks
A student
-
Oct 22nd, 2002, 08:29 PM
#2
You mean like make sure the date is valid?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Oct 22nd, 2002, 08:35 PM
#3
Thread Starter
Addicted Member
How do u use Isdate function
I dont want to break up the nos and check Because how will i know
whether it is a leap year or whether there are 30 days or 31 days etc etc
Is there another way other than breaking up !!!!!!
-
Oct 22nd, 2002, 08:37 PM
#4
PowerPoster
Well
I believe ISDATE will pick it up... but you could alwayys test to be sure. (2000 was a leap year)
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Oct 22nd, 2002, 08:38 PM
#5
Originally posted by Micky
How do u use Isdate function
Just like I showed you. Just pass the date in question into IsDate() and it will return True if its a valid date, false otherwise.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
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
|