Subtract years from a Date in PHP
Description
The following code shows how to subtract years from a Date.
Example
<?php//from w w w . j a v a2 s . c o m
$date = new Date();
$date->setDMY(28,4,2010);
$date->subYears(2);
$dcs = $date->getArray();
print_r($dcs);
?>