Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Week() first parameter
Message
From
25/08/2017 15:22:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01653752
Message ID:
01653754
Views:
41
>Hi,
>
>Please help me to make sure that I understand the first parameter of the function Week()
>I usually use 3 as the second parameter - First week has seven days. And in my app the first day of the week is Monday.
>
>So my use is
>
>nWeek = week( dSomeDate, 3, 2 )
>
>
>Do I understand the if I take the date of the 1st of 2016 (ctod('01/01/2016')), even though it is in the 1st calendar week of the year, it is NOT week not week 1 because the Monday falls on the previous week? Therefore week 1 is the week of the 1st Monday. Correct?

It's the 52nd week of 2015, under the rules set by the parameters.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform