Click or drag to resize

ConDate Function

X#
Format a set of numbers representing a year, month, and day as a date.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION ConDate(
	dwYear AS DWORD,
	dwMonth AS DWORD,
	dwDay AS DWORD
) AS DATE
Request Example View Source

Parameters

dwYear
Type: DWord
A valid year.
If the century digits are not specified, the century is determined by the rules of SetEpoch().
dwMonth
Type: DWord
A number from 1 through 12 representing a valid month.
dwDay
Type: DWord
A number representing a valid day of dwMonth.

Return Value

Type: Date
The date that corresponds to the passed arguments.
If any of the arguments specified do not represent a valid year, month, or day, a NULL_DATE is returned.
Remarks
ConDate() converts the given numbers to a date.
The display of dates is controlled by SetCentury().
Examples
These examples illustrate ConDate():
X#
1? ConDate(93, 10, 25)        // 10/25/93
2? ConDate(2093, 10, 25)        // 10/25/93
3? SetCentury(TRUE)
4? ConDate(2093, 10, 25)        // 10/25/2093
See Also