php datetime remove 2 days code example
Example 1: php remove 1 day from date
print('Next Date ' . date('Y-m-d', strtotime('-1 day', strtotime($date_raw))));
Example 2: delete after 30 days in php
DELETE FROM archive
WHERE STR_TO_DATE(SUBSTR(created_date, 0, 25), '%a, %d %b %Y %H:%i:%S') <
DATE_SUB(NOW(), INTERVAL 30 DAY);