|
Hi all,
Bearing in mind that months are different in length, how would you calculate a susbcriber's upcoming renewal date.
As an example of an account that was opened on May 31st, 2006.
1) The renewal date in July & August will be the 31st.
2) The renewal date in September will be the 30th.
3) The renewal date in February will be the 28th.
Obviously there are (very) long winded ways of doing this (which i could probably put together), but i was hoping to benefit from the brighter PHP programmers who know the more efficient method(s).
|