Posted by Kimmo Laine on 01/13/06 17:34
"lwoods" <larry@lwoods.com> kirjoitti
viestissδ:ZGOxf.7893$JT.6131@fed1read06...
>I want to calculate and display the 'mm/dd/yyyy' that is 10 years earlier
>than today.
>
> How do I do that?
$date = "12/31/2005";
echo date('d/m/Y', strtotime("$date -10years"));
--
SETI @ Home - Donate your cpu's idle time to science.
Further reading at <http://setiweb.ssl.berkeley.edu/>
Kimmo Laine <antaatulla.sikanautaa@gmail.com.NOSPAM.invalid>
[Back to original message]
|