How to add days in current date in php

hi i want to add 60 days in current date in php
Deepak Sharma
Asked 14-11-2019
75

Answer (1)
Try this also $add_date = date("Y-m-d H:m:s"); $expiry_date = new DateTime($add_date); $expiry_date ->modify("+60 days"); echo $expiry_date ->format("Y-m-d H:m:s");
Deepak Sharma
Asked 29-10-2018
45 Likes
Comments
Write comment

Answer (2)
hi try this one  $date = date('Y-m-d', strtotime("+60 day")); date('Y-m-d', strtotime("+60 day", strtotime($date)));  
Deepak Sharma
Asked 29-10-2018
45 Likes
Comments
Write comment

Submit your answer