I want to get today\'s date + one year. How do I achieve this with PHP\'s date functions?
The shortest version:
echo (int)date('Y') + 1;
$Ad_year = 2015-10-20
<?php echo $Ad_year + 1?>
Result 2016
Best and easy solution... You can change month or year or day.
date('Y-m-d',strtotime("+1 day +2months +1 year"));
You can use strtotime and date
$date = '2010-09-16';
echo date('Y-m-d', strtotime("+12 months $date"));
// 2011-09-16
On a sidenote: DateTime questions like this have been answered over and over again, so you could have found how to add to a date easily by using the search function.
If you're working with timestamps
echo time()+60*60*24*365
echo date('Y', strtotime('+1 year'));