December 20, 2015
How to Add 1 Year in Date in PHP
Sample code is given below, where we are adding 1 year to the current date.
1 2 3 4 5 6 7 8 |
<?php $today = date("Y-m-d"); $oneyear = date('Y-m-d', strtotime($today. ' + 1 year')); echo $oneyear; ?> |