Click or drag to resize

NToCDoW Function

X#
Convert the number that identifies a day into the name of the day.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION NToCDoW(
	dwDayNum AS DWORD
) AS STRING
Request Example View Source

Parameters

dwDayNum
Type: DWord
A number from 1 to 7.

Return Value

Type: String
The name of the day that corresponds to dwDayNum, where Sunday is 1, Monday is 2, and so on.
Remarks
This function is nation-dependent.
Examples
This example shows how NToCDoW() works in English:
X#
1? NToCDoW(1)            // "Sunday"
2? NToCDoW(4)                // "Wednesday"
3? NToCDoW(7)                // "Saturday"
4? NToCDoW(8)                // NULL_STRING
See Also