RE: [PHP-DB] MySQL/PHP date functions
| From: | Markus Lervik | Date: | Wed, 20 Feb 2002 11:38:11 +0000 |
| Subject: | RE: [PHP-DB] MySQL/PHP date functions | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17082@lists.php.net to get a copy of this message | ||
On Wed, 2002-02-20 at 13:16, Sven Jacobs wrote:
> You can do it like this
> calculate the current day and extract 7 days of it
ehm? extract 7 days of it? from what?-) I'm not quite following...
> then with an array the current day until the calculated day :-)
ehm, call me stupid, but I didn't get it. ;) You wouldn't mind posting
a snippet? might be easier for poor retarded me to understand. :)
> May not 100 % what you are looking for but it works
What I just came up with, teasing my (few) little gray ones, is
calculate backwards until date("W") gives 8, add one, and we have
monday the whateverth, right?-)
Cheers,
Markus
--
Markus Lervik
Linux-administrator with a kungfoo grip
Vaasa City Library - Regional Library
markus.lervik@vaasa.fi
+358-6-325 3589 / +358-40-832 6709