MakeTime(Hour: Number, Minutes: Number[, Seconds: Number[, Milliseconds: Number]]): Date
Returns a valid time with the Hour and Minutes provided, optionally with Seconds and Milliseconds.
MakeTime function syntax has these named arguments:
Parameter |
Description |
Hour |
Required. The hour of the time. |
Minutes |
Required. The minutes of the time. |
Seconds |
Optional. The seconds of the time. |
Milliseconds |
Optional. The milliseconds of the time. |
Sample code:
lTime = MakeTime(12,5,2)
Print "Time = " & FormatDateTime(lTime, "hh:mm:ss")