Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Week array
Message
From
23/09/2002 07:30:08
 
 
To
23/09/2002 07:05:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00703287
Message ID:
00703295
Views:
15
Hi!

Figure out what is a day 01/01/xxxx. Add required number of days to it to get to Friday. Then add 7 days to it in a loop till the end of the year. Note that {date value} + {number} = {date value increased by number of days}. Use DOW() function to get day of week for given date.

HTH.

>Hi all,
>
>I want to create an array with a list of week ending dates (Friday).
>Anyone know the easiest way of doing this?
>
>Thanks in advance,
>
>Ger.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform