Re: question on which day is the first day of the week
| From: | David T-G | Date: | Thu, 11 Dec 2003 11:24:08 +0000 |
| Subject: | Re: question on which day is the first day of the week | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172459@lists.php.net to get a copy of this message | ||
Hi!
..and then ____ said...
%
% Dear Sir,
% >
% > In the computer's memory, I find out that the first day of the week is Monday. But
actually, the first day of the week is Sunday, not Monday. When I try to use the date function to
number the week, I find some difficulty.. For example, the second week of 2004 should be January 11
to 17, whereas Jan 11 is Sunday and 17 is Saturday. But in the computer, the 2nd week is January 12
to 18. It confuses me. How can readjust the date function to make each week start with Sunday,
instead of Monday?
0) Could it be that, although Monday is day 1, you've overlooked that
Sunday is day 0?
1) Show us some code and output :-)
%
% thank you
HTH & HAND
:-D
--
David T-G * There is too much animal courage in
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!