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
$date=strtotime(date('Y-m-d')); // if today :2013-05-23 $newDate = date('Y-m-d',strtotime('+15 days',$date)); echo $newDate; //after15 days :2013-06-07 $newDate = date('Y-m-d',strtotime('+1 month',$date)); echo $newDate; // after 1 month :2013-06-23