Expand Minimize

Time Function

Last modified: December 06, 2011

Applies to: Office 2013 | VBA

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

Syntax

Time

Remarks

To set the system time, use the Time statement.

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

Dim MyTime
MyTime = Time    ' Return current system time.


Show:
© 2014 Microsoft