Date and Time Changes in Visual Basic
Visual Basic .NET updates the Date, Date$, Time, and Time$ functions, and replaces the Now and Timer functions with properties.
Visual Basic 6.0
In Visual Basic 6.0, the Date and Time functions return the system date and time in the four-byte Date format. Similarly, the Date and Time statements use the Visual Basic 6.0 format to set the system date and time.
The Date$ and Time$ functions return the system date and time in String format.
The Now and Timer functions specify the current date and time and the number of seconds elapsed since midnight.
Visual Basic .NET
Visual Basic .NET replaces Date and Time with the Today and TimeOfDay properties, which use the eight-byte common language runtime (CLR) DateTime structure. This corresponds with the Date data type in Visual Basic .NET. You can use Today and TimeOfDay to both set and fetch the system date and time.
Visual Basic .NET replaces the Date$ and Time$ functions with the DateString and TimeString properties. You can use DateString and TimeString to both set and fetch the system date and time.
The Now and Timer functions are replaced by read-only properties of the same names. Their calling sequences remain unchanged.
Format Function Changes in Visual Basic | Format Function | Today Property | TimeOfDay Property | DateTime Structure | Date Data Type | DateString Property | TimeString Property | Now Property | Timer Property | Programming Element Support Changes Summary