Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CDOW() and SET FDOW
Message
 
To
05/03/2002 16:27:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00628672
Message ID:
00628697
Views:
20
Oh my... Of course! I was trying to get the name of the first day of the week, and got totally mixed-up.
Thanks Steve.

>Doru,
>
>Isn't today Tuesday, no matter what you consider the first day of the week? ;)
>
>>Why is it that CDOW() does not have a second parameter for first day of week, like DOW()? I expected that, missing the parameter, it will default to the current SET FDOW, but that is not the case.
>>
>>SET FDOW TO 1
>>?CDOW(DATE()),DOW(DATE(),SET("FDOW"))  && returns: Tuesday   3
>>SET FDOW TO 2
>>?CDOW(DATE()),DOW(DATE(),SET("FDOW"))  && returns: Tuesday   2
>>SET FDOW TO 3
>>?CDOW(DATE()),DOW(DATE(),SET("FDOW"))  && returns: Tuesday   1
>>
>>It doesn't look right to me...
Doru
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform