How can we find how many months passed by particular date to current date time, concidering the days per month (ex:-January 31, Feb 28/29 ) using php.
I tried with
diff()
function
not solve my problem. Because it counts how many 30 day months passed.
How can we find how many months passed by particular date to current date
Share
Just do it the human way; subtract the months and add one if the day falls before today.