Jump to content

get next month based on specifc date


peterjc

Recommended Posts

I know to get the next month based on today date

example: date('Y-m-d',strtotime('1 months')) will get the date for next month from today.

 

But know i want to get the next month based on a specific date.  Example, i want to get the date for next month based on this date: 2008-06-04.  So it will output 2008-07-04.

 

Thank in advance.

Link to comment
https://forums.phpfreaks.com/topic/122673-get-next-month-based-on-specifc-date/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.