Posted by Andrew @ Rockface on 01/13/06 17:25
lwoods wrote:
> Thanks, but I don't need to subtract seconds, really. I need something that
> looks like this:
>
> I need to be able to:
>
> 1. Subtract 10 years from today
> 2. Display that value in 'mm/dd/yyyy' format
$date = "01/14/2005";
$date_new = date('m\/d\/Y', strtotime("10 years ago", strtotime($date)));
echo $date_new;
--
Andrew @ Rockface
np: Conflict - Vietnam [stopped]
www.rockface-records.co.uk
[Back to original message]
|