Hi, im new to php, im trying to return todays date + 1 year, seems simple but i cant get it sorted.
ive tried
<?php $nextyear = mktime(date("m"), date("d"), date("Y")+1); ?>
this returns
1102423225
not right me thinks, i also want the date seperated by /
Any help would be appriciated.
Craig
PHP date
Moderator: General Moderators
or for real lazy people:
Code: Select all
strtotime("now +1 year");