ToDateTime
Returns a Gregorian cDateTime 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 cDateTime
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
cDateTime - A Gregorian version of the date specified.
Remarks
See Also
Project VBCorLib Overview
Class Calendar Overview
Calendar Properties
Calendar Methods
IsLeapYear
ToFourDigitYear