phpbar.de logo

Mailinglisten-Archive

AW: [php] Bug in Datumsberechnung ?

AW: [php] Bug in Datumsberechnung ?

Wolfgang Hauck php_(at)_phpcenter.de
Tue, 30 Apr 2002 14:19:09 +0200


>$prevday= mktime(0,0,0,$month,$day,$year)-(86400);
>$nextday= mktime(0,0,0,$month,$day,$year)+(86400);

Hi,

 $month = "04";
 $day = "01";
 $year = "2002";
 echo date("d.m.Y",mktime(0,0,0,$month,$day - 1,$year))
 echo date("d.m.Y",mktime(0,0,0,$month,$day + 1,$year))

MFG Wolfgang


php::bar PHP Wiki   -   Listenarchive