PHP Number of months between 2 dates
Posted on 2012-03-23
I know this is probably very simple, but I can't seem to find a solution that's right for me.
I'm getting one date from the db as "2011-11-21" and placing that value in the variable "$LastPaymentDueDate"
I'm also creating a future date such as "2012-04-01" and placing that value in the variable "$NextPaymentDueDate"
I don't care about partial months because everyone is supposed to pay up on the first day of every month. I just want a count to tell me how many months a particular payment is overdue by.
Can you help?