In my PHP code I have a date in my variable \"$postedDate\". Now I want to get the date after 7 days, 15 days, one month and 2 months have elapsed.
Which date functi
Since PHP 5.2.0 the DateTime build in class is available
DateTime
$date = new DateTime($postedDate); $date->modify('+1 day'); echo $date->format('Y-m-d');
http://php.net/manual/en/class.datetime.php