tags:

views:

149

answers:

2

How to get the datetime value several days/weeks/months/years later in MySQL?

I just know the current datetime is NOW() .

+3  A: 
SELECT NOW() + INTERVAL 3 DAY
SELECT NOW() + INTERVAL 5 WEEK
SELECT NOW() + INTERVAL 6 MONTH
SELECT NOW() + INTERVAL 2 YEAR
chaos
+2  A: 

See the mysql time functions reference

Omry