Bug #66198 | Date Manipulation | ||
---|---|---|---|
Submitted: | 4 Aug 2012 8:04 | Modified: | 4 Aug 2012 8:58 |
Reporter: | Muruga Prabu | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S2 (Serious) |
Version: | 5.1.61 | OS: | Linux (Cent OS) |
Assigned to: | CPU Architecture: | Any | |
Tags: | date |
[4 Aug 2012 8:04]
Muruga Prabu
[4 Aug 2012 8:58]
Valeriy Kravchuk
You do "date arithmetic" in a wrong way. Just use DATE_SUB() function instead. Read http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date-add for the details.