note 46306 added to function.date

From: Date: Wed, 06 Oct 2004 13:16:56 +0000
Subject: note 46306 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-78066@lists.php.net to get a copy of this message
one year later code <?php $tarih = date("Y-m-d"); echo "to day date $tarih <br>"; //this out put 2004-10-06 $tarih_=explode("-",$tarih); $tarihy =$tarih_[0]; $tarihm =$tarih_[1]; $tarihd =$tarih_[2]; $akl = getdate(); $un= mktime(0, 0, 0, $tarihm, $tarihd, $tarihy); $un_ = (($un)*1) + (60*60*24*364); echo "Next Year Later : ".date("Y-m-d",$un_); //this out put 2005-10-05 ( one day previous from next year ) $un_ = (($un)*1) + (60*60*24*365); echo "Next Year Later : ".date("Y-m-d",$un_); //this out put 2005-10-06 (Next Year) ?> ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46306 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46306&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46306&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#78066) next »