GregorianCalendar: ToDateTime

ToDateTime

Returns a Gregorian CorDateTime computed using the specific calendar rules.



 Public Function ToDateTime(
	  ByVal Year As Long,
	  ByVal Month As Long,
	  ByVal Day As Long,
	  ByVal Hour As Long,
	  ByVal Minute As Long,
	  ByVal Second As Long,
	  ByVal Millisecond As Long,
	  Optional ByRef Era As Variant ) As CorDateTime

Parameters

Year
[ByVal] Long. The Year in the specific calendar type.
Month
[ByVal] Long. The Month in the specific calendar type.
Day
[ByVal] Long. The Day in the specific calendar type.
Hour
[ByVal] Long. The hour for the new time.
Minute
[ByVal] Long. The minute for the new time.
Second
[ByVal] Long. The second for the new time.
Millisecond
[ByVal] Long. The milliseconds for the new time.
Era
[ByRef] Optional. Variant. The era the year is in.

Return Values

CorDateTime -  A Gregorian version of the date specified.

See Also

Project CorLib Overview

Class GregorianCalendar Overview