NTOCDOW()

NTOCDOW()

Find day name by num of day

Syntax

       NTOCDOW( <nDay> ) -> cDay

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. Example In English Harbour returns: ? NTOCDOW(1) // “Sunday” ? NTOCDOW(4) // “Wednesday” ? NTOCDOW(7) // “Saturday” ? NTOCDOW(8) // “”

Note

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

Compliance

NTOCDOW() is compatible with CT3’s NTOCDOW().

Platforms

All

Files

Source is dattime2.prg, library is libct.

Seealso

CTODOW()

Advertisements

2 responses to “NTOCDOW()

  1. Pingback: Harbour Date & Time Functions | Viva Clipper !

  2. Pingback: Harbour All Functions – N | Viva Clipper !

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s