Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
Class
Microsoft.VisualBasic.DateAndTime Syntax
Dim result As String = DateAndTime.DateString
or: DateAndTime.DateString = newDate
Description
The DateString property gets or sets the current system date. The first syntax returns a string representing the current system date in the "MM-dd-yyyy" format. The second syntax sets the current system date using a string that is in a culture-independent format. Usage at a Glance
Version Differences
The DateString property is new to VB under .NET. It is a replacement for the VB 6 Date statement, which sets the system date, and the Date and Date$ functions, which retrieve the system date. See Also
Format Function, Now Property, TimeString Property, Today Property |
Категории