note 44784 deleted from function.strtotime by derick

From: Date: Sun, 14 Aug 2005 11:48:58 +0000
Subject: note 44784 deleted from function.strtotime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93588@lists.php.net to get a copy of this message
Note Submitter: Faust ---- the easiest way (i think :) to get a monday from a week's number: <?php function getMonday ($kwName) { $thisWo = date("W"); $diffWo = $kwName-$thisWo; $monday = strtotime("this Monday"); $plus_week = "+".$diffWo." week"; $nextMon = date("d.m.y", strtotime($plus_week, $monday)); echo $nextMon; } ?> where $kwName - a week's number.

« previous php.notes (#93588) next »