|
-
May 25th, 2000, 11:43 AM
#1
Thread Starter
Addicted Member
I need to take the current date and get a range between the current date and back 1 hour or 60 minutes using SQL and an SQL Database.
Does someone have some sample code to show me please?
-
May 25th, 2000, 06:09 PM
#2
How about:
DateAdd("h", -1, Now)
-
May 25th, 2000, 06:42 PM
#3
Lively Member
Between
and then you take the value returned back from DateAdd and use it in your query:
Select Bla from That where some_date between ThisDate and ThatDate
or
Select Bla from That where some_date >= ThisDate and some_date <= ThatDate
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
|