Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

How to add one year in current date using php

by
Category:php
php
 How to add one year in current date using php

Here is the solution to add year to the current date or desired date using PHP. many project need this type speciality suppose, user subscribe account in 1 year. You may also like How to add one month in current date using php and How to Add Days to Date in PHP.

PHP Code

<?php
    echo date('Y-m-d', strtotime(' + 2 year')); 
?>

And if you like this tutorials please share it with your friends via Email or Social Media.


0 Comments


Html code work in comment box


Related Post