O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Date Data Type

The Date data type stores and manipulates date values. It helps you to calculate time differences, parse date values from strings, and convert date values into formatted strings.

.NET data type: System.DateTime

Represents: Dates and time from 1.1.0001 (0 hours) to 31.12.9999 (23:59:59 hours) with a resolution of 100 nanoseconds (this unit is called a tick)

Type literal: Enclosed in pound-signs, always United States culture format (#MM/dd/yyyy HH:mm:ss#)

Memory requirements: 8 bytes

Note

Date also is a base data type, for which you can define a date variable directly by using literals in the program code. The same rules apply for numeric values: The United States date/time format is important. If you are not familiar with this format, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required