Click or drag to resize

NToCMonth Function

X#
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.19
Syntax
 FUNCTION NToCMonth(
	dwMonthNum AS DWORD
) AS STRING
Request Example View Source

Parameters

dwMonthNum
Type: DWord
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