共用方式為


Now Function

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

Returns a Variant (Date) specifying the current date and time according your computer's system date and time.

Syntax

Now

Example

This example uses the Now function to return the current system date and time.

Dim Today
Today = Now    ' Assign current system date and time.