note 24372 deleted from function.date by sniper

From: Date: Sat, 11 Oct 2003 16:50:20 +0000
Subject: note 24372 deleted from function.date by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58262@lists.php.net to get a copy of this message
Note Submitter: phpATsmintmanTODde ---- To get the monday for a week (german Kalenderwoche) of the current year use this function: function kwday($kw) { return mktime(0, 0, 0, 1, 1 + ((8 - date("w", mktime(0,0,0,1,1,date("Y")))) % 7) + ($kw - 2) * 7, date("Y")); }

« previous php.notes (#58262) next »