Answers for "datetime php remove 30 days php"

PHP
1

php remove 1 day from date

print('Next Date ' . date('Y-m-d', strtotime('-1 day', strtotime($date_raw))));
Posted by: Guest on July-18-2020
1

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);
Posted by: Guest on June-07-2021

Browse Popular Code Answers by Language