note 68640 deleted from function.date by danbrown

From: Date: Sun, 20 Jul 2008 02:57:11 +0000
Subject: note 68640 deleted from function.date by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142004@lists.php.net to get a copy of this message
Note Submitter: Matt_B at TinyOnline dot co dot uk ---- In response to the getLastWeekDay() function: ***^ EDITOR NOTE: Referred to note was removed 2006-09-07. Changing dates for any reason by adding/subtracting secret is a really bad idea. Daylight savings will totally screw up the calculations. Your best bets are the awesome strtotime features. To get last monday for example: $var = strtotime('last monday'); Strtotime can do all sorts of funky stuff like this.

« previous php.notes (#142004) next »