Now 函数

根据计算机系统日期和时间的设置返回当前日期和时间。

语法

Now

注释

以下示例使用 Now 函数返回当前日期和时间:

Dim MyVar
MyVar = Now
'Output: Myvar contains current date and time.