Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Week() first parameter
Message
 
 
To
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:
01653755
Views:
43
>>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.

Yes, this is what I get and I am ok with this. I just wanted to be sure I understand it correctly.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform