O'Reilly logo

Visual Basic: A Beginner's Tutorial by Jayden Ky

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

Chapter 9

Numbers and Dates

In Visual Basic numbers are represented by types such as Byte, Short, Integer, Single, Double, and Long. These types are aliases for .NET structures System.Byte, System.Int16, System.Int32, System.Single, System.Double, and System.Int64, respectively. In addition, dates are represented by the System.DateTime structure. When working with numbers and dates, three issues that you need to address are parsing, formatting, and manipulation.

Parsing deals with the conversion of a string into a number or a date. Parsing is commonplace because computer programs often require user input and user input is received as a string. If a program expects a number or a date but receives a string, then the string has to be first ...

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