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.

Comments
Join the conversation! Your thoughts help the community grow.