Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dates by Number of Week
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00583459
Message ID:
00583487
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>Given 52 weeks in a year and week definition (from Sat through Friday) I need to calculate Week's first day, week's last day and some other dates for the given year for each week. What would be a formula here?
>
>Thanks a lot in advance.

Eh,
i don't know exactly what you mean, but all the mondays of a year for example gives something like this.
dDate = firstmonday (with the day() function you can find it)
DO WHILE year(dDate) = year(dDate + x)
  ? dDate + 7
  x = x + 7
ENDDO
Previous
Reply
Map
View

Click here to load this message in the networking platform