Results 1 to 2 of 2

Thread: Long date

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Columbus Ohio
    Posts
    217
    How can i compare to dates formatted through long date?? A string comparision happens if they are in variables and that doesnt work right for dates
    Chris

    [email protected]
    Windows XP RC2 B2526
    Visual Studio.Net Beta 2
    C++, VB, VB.Net, ASP, PHP

  2. #2
    Addicted Member Michael Woolsey's Avatar
    Join Date
    Nov 2000
    Location
    Calgary, Alberta, Canada.
    Posts
    243
    Have you tried using the DateDiff function?

    Returns a Variant (Long) specifying the number of time intervals between two specified dates.

    Syntax

    DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]])

    Hope this helps.
    Michael
    Application/Web Developer

    Visual Basic 6.0 SP5
    Active Server Pages
    Oracle 9i
    - I'm going to live forever, or die trying!

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