Results 1 to 3 of 3

Thread: comparing dates in ASP.

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    10

    Exclamation

    i am creating a webpage for keeping tracks of new hires.
    in my database we keep track of the day they start (
    Code:
    start_date
    ) any way i was trying to make the asp only list the people who start AFTER the current date.

    so i was trying

    Code:
    WHERE DateDiff(""d"", start_date, " & date() & ")"
    within my SQL Query, but it was not successful... anyone have a better idea?
    ***SPLAT***
    Road-Kill on the
    information super-highway

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    "Select * from MyTable where Start_Date > '" & Date() & "'"

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    10

    Angry

    you would think that would work, however... it fails. it still gives dates that were prior to the current date. pisses me off.
    ***SPLAT***
    Road-Kill on the
    information super-highway

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