Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weeks in a year
Message
From
17/10/2006 17:12:25
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01162585
Message ID:
01162731
Views:
20
>>I just saw my cell phone calendar (Nokia 3100)...and andvance to the year 2009 and ...bualaaaaá...: 53 Weeks.
>>
>>Is it wrong?...I don´t think so.
>>
>>Carlos Burgos
>
>Carlos,
>
>The problem is that the "week" may be considered differently (depending on what is the first day of the week, whether one need to count partial week, etc). This will give you expected 53:
>
>?week({^2009-12-31},3,DOW({^2009-01-01}))   &&53
>
>
>But it is not the default approach used by foxpro.

Accourting to you formula, all years have 53.
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform