Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 751 Bytes

time-function.md

File metadata and controls

38 lines (24 loc) · 751 Bytes
title keywords f1_keywords ms.assetid ms.date ms.localizationpriority
Time function (Visual Basic for Applications)
vblr6.chm1009041
vblr6.chm1009041
53451748-04cf-04d2-b40d-c091753c7898
12/13/2018
medium

Time function

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.

See also

[!includeSupport and feedback]