Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in SQL Server only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
SQL Server
BETWEEN now() - 6days???? AND now()
BETWEEN now() - 6days???? AND now()
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
theJonster
New Member
Join Date:
Feb 2007
Posts:
20
#1
BETWEEN now() - 6days???? AND now()
Mar 8 '07, 08:55 AM
Hi,
Tryin to get records between these two dates, 6 days ago and now.
Thanks
mabubakarpk
New Member
Join Date:
Feb 2007
Posts:
62
#2
Mar 8 '07, 09:29 AM
If your are using SQL Server then use this query
Code:
Select * from tablename where tdate between getdate()-6 and getdate()
Note: getdate() returns current date time.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment