Date Function (DWord, DWord, DWord) | |
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.21
Syntax FUNCTION Date(
dwYear AS DWORD,
dwMonth AS DWORD,
dwDay AS DWORD
) AS DATE
public static Date Date(
uint dwYear,
uint dwMonth,
uint dwDay
)
Request Example
View SourceParameters
- 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():
1? ConDate(93, 10, 25)
2? ConDate(2093, 10, 25)
3? SetCentury(TRUE)
4? ConDate(2093, 10, 25)
See Also