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) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to