Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

Now Property

Class

Microsoft.VisualBasic.DateAndTime

Syntax

Dim result As Date = Now

Description

The Now property returns the current system date and time.

Usage at a Glance

  • The Now property is read-only.

  • The Now property is a wrapper for the Date data type's Now shared property. As a result, calls to the Date.Now property may offer a slight performance improvement over calls to the DateAndTime.Now property.

See Also

Today Property

Категории