August 2001
Intermediate to advanced
656 pages
18h 5m
English
DateString Property
Microsoft.VisualBasic.DateAndTime
DateString( )
A String representing the current system date
Returns or sets a string representing the current system date in the format “mm-dd-yyyy”
The allowed formats for setting the date are “m-d-yyyy,” “m-d-y,” “m/d/yyyy,” and “m/d/y.”
To get or set the current system time as a String, use the TimeString property.
To access the current system date as a Date, use the Today property.
The DateString property is new to VB .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.
Read now
Unlock full access