Returns a Variant (Date) indicating the current system time.

Syntax

Time

Remarks

To set the system time, use the Time statement.

Example

This example uses the Time function to return the current system time.

Dim MyTime MyTime = Time ' Return current system time.