refiking Posted May 21, 2009 Share Posted May 21, 2009 I want to display one month after 15 days from today. How can I do that? here is what I have so far: $month1 = strtotime("now"); $month2 = strtotime("+ 15 Days"); //$month3 = strtotime("1 Month After $month2"); Echo $month3; Quote Link to comment https://forums.phpfreaks.com/topic/159014-solved-add-1-month-to-date/ Share on other sites More sharing options...
Maq Posted May 21, 2009 Share Posted May 21, 2009 Something like: $month1 = strtotime("now"); echo date("F j, Y", $month1) . " "; $month2 = strtotime("+ 15 Days"); $month2 = date("F j, Y", $month2); echo $month2 . " "; $month3 = strtotime("$month2 + 1 Month"); echo date("F j, Y", $month3) . " "; ?> Quote Link to comment https://forums.phpfreaks.com/topic/159014-solved-add-1-month-to-date/#findComment-838618 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.