hi i want to add 60 days in current date in php
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");
Answer (2)
hi try this one
$date = date('Y-m-d', strtotime("+60 day"));
date('Y-m-d', strtotime("+60 day", strtotime($date)));