NTOCMONTH()

NTOCMONTH()

Find a month name by the number of month

Syntax

       NTOCMONTH( <nMonth> ) -> cMonth

Argument

<nMonth> Designates a month number for which a month name is returned.

Returns

NToCMonth() returns the name that corresponds to the month number.

Description

NToCMonth() determines the month name that corresponds to its month number. January is 1, February is 2, …, December is 12. If a number outside this range is passed, the function returns a null string as a value.

Note

The function’s operation depends on the country specific adaptation of your Harbour compiler. With an English version of Harbour, only English day names are returned.

Example

       In English Harbour returns:
           ? NToCMonth(1)         //"January"
           ? NToCMonth(2)         //"February"
           ? NToCMonth(12)        //"December"
           ? NToCMonth(14)        //""

Compliance

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

Platforms

All

Files

Source is dattime2.prg, library is libct.

Seealso

CTOMONTH()

Advertisements

2 responses to “NTOCMONTH()

  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