Programming Elements Supported Differently

Several programming elements are supported differently in Visual Basic .NET than they were in VB6. This section highlights existing functions and what-nots that are still supported, but some fundamental aspect of their behavior or value has been modified for .NET.

Calendar

The Calendar class is an abstract class defined in the System.Globalization namespace. There are several subclasses derived from Calendar, supporting current and historic calendars like the Gregorian calendar.

The Calendar class contains methods for managing time, including adding increments of time, cultural information, and functions like IsLeapYear. The following example creates an example of a JulianCalendar, used in the West and ...

Get Visual Basic® .NET Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.