Click or drag to resize

ConDateTime Function

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

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION ConDateTime(
	dwY AS DWORD,
	dwM AS DWORD,
	dwDay AS DWORD
) AS DateTime
Request Example View Source

Parameters

dwY
Type: DWord
A valid year. If the century digits are not specified, the century is determined by the rules of SetEpoch().
dwM
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: DateTime
The date that corresponds to the passed arguments. If any of the arguments specified do not represent a valid year, month, or day, a DateTime.MinValue is returned.
See Also