Click or drag to resize

ConDate Function

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.08
Syntax
 FUNCTION ConDate(
	dwYear AS DWORD,
	dwMonth AS DWORD,
	dwDay AS DWORD
) AS DATE
View Source

Parameters

dwYear
Type: UInt32
A valid year.  If the century digits are not specified, the century is determined by the rules of SetEpoch().
dwMonth
Type: UInt32
A number from 1 through 12 representing a valid month.
dwDay
Type: UInt32
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#
? ConDate(93, 10, 25)                // 10/25/93
? ConDate(2093, 10, 25)                // 10/25/93
? SetCentury(TRUE)
? ConDate(2093, 10, 25)                // 10/25/2093
See Also