Jump to content

Archived

This topic is now archived and is closed to further replies.

barkster

Query where date + days?

Recommended Posts

I have a datefield(timestamp) that I want to query to see if it has expired.  Is to possible to a select query WHERE datefield + 60 days < now()?  Thanks

Share this post


Link to post
Share on other sites
Figured it out finally

Where
(Listings.EndDate + INTERVAL 60 DAY) < Now();

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.