Is there a way to subtract an amount of days from a date in SQL?

Posted by morningface on Stack Overflow See other posts from Stack Overflow or by morningface
Published on 2010-04-13T06:39:28Z Indexed on 2010/04/13 6:43 UTC
Read the original article Hit count: 203

Filed under:
|
|

I know about DATEDIFF(d, date1, date2), but I am not looking to subtract two dates, rather an amount of days from a date.

For example:

"2010-04-13" - 4 = "2010-04-09"

Is that possible with mySQL?

© Stack Overflow or respective owner

Related posts about sql

Related posts about mysql