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? 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')); Link to comment https://forums.phpfreaks.com/topic/110723-solved-date-help-please/#findComment-568063 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.