Subtract weeks from a Date in PHP
Description
The following code shows how to subtract weeks from a Date.
Example
<?php//from w w w .jav a2s. co m
$date = new Date();
$date->setDMY(28,4,2010);
$date->subWeeks(7);
$dcs = $date->getArray();
print_r($dcs);
?>