Now 函式

根據您電腦系統日期與時間的設定值,傳回目前的日期與時間。

語法

Now

備註

下列範例使用 Now 函式來傳回目前的日期與時間:

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