cDateTimeStatic: FromOADate

FromOADate

Returns a cDateTime object from a VB Date value.



 Public Function FromOADate(
	  ByVal d As Date,
	  Optional ByVal Kind As DateTimeKind = UnspecifiedKind ) As cDateTime

Parameters

d
[ByVal] Date. The standard VB Date value.
Kind
[ByVal] Optional. DateTimeKind. Specifies whether the cDateTime is a UTC, Local, or unspecified time type.  

Default: UnspecifiedKind

Return Values

cDateTime -  The cDateTime representation of the date.

Remarks

See Also

Project VBCorLib Overview Class cDateTimeStatic Overview cDateTimeStatic Properties cDateTimeStatic Methods FromMilliseconds IsLeapYear