Example: 20091005 - 7 = 20090998
Try this instead SELECT DATE_SUB(CURDATE(),INTERVAL 7 DAY)In reply to Re^2: Get the date (MySQL style) for X days ago
by repeacock
in thread Get the date (MySQL style) for X days ago
by mbreyno
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |