Results 1 to 3 of 3

Thread: comparing Dates......Argh.....HELP

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    Singapore
    Posts
    24

    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!

  2. #2
    Junior Member
    Join Date
    Aug 2001
    Posts
    30
    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]

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    Singapore
    Posts
    24
    =) 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
  •  



Click Here to Expand Forum to Full Width