I want to get today's date + one year. How do I achieve this with PHP's date functions?
I want to get today's date + one year. How do I achieve this with PHP's date functions?
Best and easy solution... You can change month or year or day.
date('Y-m-d',strtotime("+1 day +2months +1 year"));
Below code also return next year from current date:
<?php echo date('Y', strtotime('+12 month'));>