As expected the mktime function gives the wrong date for February... ***k
example: minus 1 month from march
from (original 2008-01-01) 2007-10-01 to (original 2008-03-31) 2008-03-02 (wrong due to 28 or 29 days in Feb)
example minus 3 months from given date
from (original 2008-01-01) 2007-10-01 to (original 2008-03-31) 2007-12-31 (correct)
example minus 4 months from given date
from (original 2008-01-01) 2007-10-01 to (original 2008-03-31) 2007-12-01 (wrong due to 30 days only in Nov.) |