Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CDOW() and SET FDOW
Message
 
À
05/03/2002 16:27:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00628672
Message ID:
00628697
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform