Time Function
Returns a Variant of subtype Date indicating the current system time.
Syntax
Time
Remarks
The following example uses the Time function to return the current system time:
Dim MyTime
MyTime = Time ' Return current system time.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Returns a Variant of subtype Date indicating the current system time.
Time
The following example uses the Time function to return the current system time:
Dim MyTime
MyTime = Time ' Return current system time.