title | keywords | f1_keywords | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Time function (Visual Basic for Applications) |
vblr6.chm1009041 |
|
53451748-04cf-04d2-b40d-c091753c7898 |
12/13/2018 |
medium |
Returns a Variant (Date) indicating the current system time.
Time
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.
[!includeSupport and feedback]