Click or drag to resize

NToCMonth Function

Convert the number that identifies a month into the name of the month.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.5
Syntax
 FUNCTION NToCMonth(
	dwMonthNum AS DWORD
) AS STRING

Parameters

dwMonthNum
Type: UInt32
A number from 1 to 12.

Return Value

Type: String
The name of the month that corresponds to <dwMonthNum>, where January is 1, February is 2, and so on through December, which is 12.
Remarks
This function is nation-dependent.
Examples
This example shows how NToCMonth() works in English:
X#
1? NToCMonth(1)                // "January"
2? NToCMonth(2)                // "February"
3? NToCMonth(12)            // "December"
4? NToCMonth(14)            // NULL_STRING
See Also