TimeSerial Function

Syntax:

TimeSerial(Hour, Minute, Second)

Group:

Time/Date

Description: 

Returns a date value.

Parameters:

Parameter

Description

Hour

This numeric value is the hour (0 to 23).

Minute

This numeric value is the minute (0 to 59).

Second

This numeric value is the second (0 to 59).

Example:

Sub Main
  Debug.Print TimeSerial(13,30,0) '1:30:00 PM
End
Sub

See Also:

DateSerial, DateValue, TimeValue