SELECT date_format(CURDATE(), '%e-%b-%y');
This spits out the date to be 27-Dec-22 and I simply need to run another query so it shows 27-Dec-23
SELECT date_format(CURDATE(), '%e-%b-%y');
This spits out the date to be 27-Dec-22 and I simply need to run another query so it shows 27-Dec-23
4
Answers
You may directly add one year using
INTERVAL
syntax:You can use INTERVAL in this case
use date_add and interval