|
-
Dec 12th, 2001, 01:15 AM
#1
Thread Starter
Junior Member
comparing Dates......Argh.....HELP
ooh no....
i really don't wish to post this message but i really had no choice.
I have been working on my date compare for almost a day, but i still can't get it working.
I was trying to get two dates and validate that they must be within a fixed range.
Wonder if anyone can help mi solve this.
Thanks!
-
Dec 12th, 2001, 01:05 PM
#2
Junior Member
Karen17,
In VB6 I used an operator that allowed me to do this and they've carried it along into VB .NET. Try this
If DateDif(whatever you need bla bla here) > yourAllowedWindow Then
Do something
Else
Do something else.
End If
The DateDiff operator is the key, unfortunately I don't know much about it in .NET as my help is not working (see my previous post).
Hope this helps!
Reid V. Plumbo
[email protected]
-
Dec 12th, 2001, 08:26 PM
#3
Thread Starter
Junior Member
=) Thank you,
but before i can use the method, i mus first cast my readin value of string to date right??
however it prompt mi that casting from string to date is invalid, is there anyway to solve it??
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
|