By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,397 Members | 1,647 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,397 IT Pros & Developers. It's quick & easy.

select date 7 days from today

P: n/a
Syl
Hi group -

I have a table with a date field:
eventdate date

I need to select all records where the eventdate is 7 days from today.

Any ideas ? I've been looking at diffdate but I don't think I'm on the
right track.

Thanks!

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

SELECT *
FROM mytable
WHERE DATE_ADD( CURDATE(), INTERVAL 7 DAY ) = eventdate

---
Steve

Jul 17 '05 #2

P: n/a
Syl
Terriffic! tested and works great.
Thanks so much Steve.

It's easy once you know how! ;-)

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.