phpretard Posted June 18, 2008 Share Posted June 18, 2008 This adds 1 month. <?php echo date('m-15-Y', strtotime('+ 1 months')); ?> Can someone show me a way to echo + 1 month and + 1 one year? I have read the manual and it didn't help much... Any help here? Quote Link to comment https://forums.phpfreaks.com/topic/110723-solved-date-help-please/ Share on other sites More sharing options...
phpretard Posted June 18, 2008 Author Share Posted June 18, 2008 I figured it out... date('m-01-Y', strtotime(' + 1 months, + 1 year')); Quote Link to comment https://forums.phpfreaks.com/topic/110723-solved-date-help-please/#findComment-568063 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.