Today Property


Today Property

Class

Microsoft.VisualBasic.DateAndTime

Syntax

     Dim result As Date = DateAndTime.Today 

or:

     DateAndTime.Today = newDate 


newDate (required in syntax 2; Date)

A date used to set the current system date

Description

The Today property gets or sets the current system date. The first syntax returns a Date representing the current system date, with the time set to midnight. The second syntax sets the current system date using a Date; any time component of that value is ignored.

Usage at a Glance

  • Older versions of Microsoft Windows, such as Windows 95, limit the system date to between January 1, 1980 and December 31, 2099.

  • The security settings of the active user may prevent the system date and time from being altered.

See Also

Now Property




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net