
July 22nd, 2005, 01:27 PM
|
|
|
|
Join Date: Apr 2007
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Adding 18 months to a date...
I've just started using pear and have a quick query about the Date class.
I'm trying to do something which at first seems pretty simple. I need to add 18 months to a given date. Date::AddSpan seems to be the function for the job, but I can't for the life of me figure out how to add in units any larger than a day.
The only option I've got is to create another date, add the relevant number of months and years manually (complete with all the validation that that implies).
Anyone got any bright ideas on how to do this easily.
Tim
|