Jump to content

[SOLVED] PHP dates


karldesign

Recommended Posts

Hi,

 

I am looking for a reliable method of finding month differences between 2 dates.

 

I want the difference between $start_date  and $end_date, but want to print the difference in months, ie: 22 March 2007 - 22 May 2007 = 2 months. 1 April 2007 - 1 March 2007 =  1 Month...

 

I have seen lots of comparison functions but just want a simple script to get me the number.

Link to comment
https://forums.phpfreaks.com/topic/45418-solved-php-dates/
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.