I have this PHP code:
$end=date(\'Y-m-d\');
I use it to get the current date, and I need the date 5 years in the future, something like:
try this ,
$presentyear = '2013-08-16 12:00:00'; $nextyear = date("M d,Y",mktime(0, 0, 0, date("m",strtotime($presentyear )), date("d",strtotime($presentyear )), date("Y",strtotime($presentyear ))+5)); echo $nextyear;