mysql subtract month from timestamp
DATE_SUB((DATE_SUB(curdate(), INTERVAL 1 MONTH)), INTERVAL 4 DAY)
mysql subtract month from timestamp
DATE_SUB((DATE_SUB(curdate(), INTERVAL 1 MONTH)), INTERVAL 4 DAY)
mysql date minus 1 day
SELECT SYSDATE(); -- 2021-07-13 06:12
SELECT DATE_ADD(SYSDATE(), INTERVAL 1 DAY); -- 2021-07-14 06:12
SELECT DATE_ADD(SYSDATE(), INTERVAL -1 DAY); -- 2021-07-12 06:12
SELECT DATE(SYSDATE()); -- 2021-07-13 00:00
-- ⇓ Test it ⇓ (Fiddle source link)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us