CT_NToCDoW

NTOCDOW()
Changes the number of a weekday into a weekday name
 Syntax

     NTOCDOW(<nWeekday>) --> cWeekday

 Argument

     <nWeekday>  Designates a weekday number from 1 to 7.

 Returns

     NTOCDOW() returns a name that corresponds to its weekday number.

 Description

     This function converts a weekday number into the corresponding name.
     Sunday is 1, Monday is 2, Saturday is 7.  If you pass a number outside
     of this range, the function returns a 0 value.

 Note

     .  Function operation depends on the country-specific adaptation
        of your Clipper compiler.  With an English version of Clipper,
        only English day names are returned.

 Example

     An English Clipper returns:

     ? NTOCDOW(1)      // "Sunday"
     ? NTOCDOW(4)      // "Wednesday"
     ? NTOCDOW(7)      // "Saturday"
     ? NTOCDOW(8)      // ""

See Also: CTODOW()

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.