Learning PHP and MySQL

Example 08-16 Using DATE_SUB to subtract days

SELECT DATE_SUB(NOW(), INTERVAL 12 DAY);

Posted by on 08/07 at 05:17 PM

Next entry: Example 08-18 Using DATE_FORMAT with a string to place colons between the segments

Previous entry: Example 08-15 Using HOUR and MINUTE on a time

<< Back to main