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"))
>>SET FDOW TO 2
>>?CDOW(DATE()),DOW(DATE(),SET("FDOW"))
>>SET FDOW TO 3
>>?CDOW(DATE()),DOW(DATE(),SET("FDOW"))
>>
>>It doesn't look right to me...
Doru