note 76720 deleted from function.strtotime by nlopess

From: Date: Fri, 27 Jul 2007 17:05:32 +0000
Subject: note 76720 deleted from function.strtotime by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-128990@lists.php.net to get a copy of this message
Note Submitter: petrpulc [at] gmail [dot] com ---- I wrote simple function, that returns date based on requested day of week, week number and year number: <?php //$day have to be full English name of day function weekday($week, $year, $day) { return date("d. m. Y",strtotime($day." ".$week-1." week",date("U",strtotime("1 January ".$year)))); } ?> Anyone have a better idea? Tell me by e-mail...

« previous php.notes (#128990) next »