date minus 3 months
Posted: Wed Jan 14, 2009 10:59 am
Hi,
I'd like to be able to minus 3 months from a date and then round it down to 1st of that month.
Example:
(format british time d/m/y)
today = "14/1/2009";
three months ago = "1/10/2008"
Can anyone tell me how I can do this using php?
Thanks
--Mark
I'd like to be able to minus 3 months from a date and then round it down to 1st of that month.
Example:
(format british time d/m/y)
today = "14/1/2009";
three months ago = "1/10/2008"
Can anyone tell me how I can do this using php?
Thanks
--Mark