Internationalization and localization tools


VB.NET Date/Time Formatting

using System

Public Sub New(ticks As Long)

Public Sub New(ticks As Long, kind As DateTimeKind)

Public Sub New(year As Integer, month As Integer, day As Integer)

Public Sub New(year As Integer, month As Integer, day As Integer, calendar As Calendar)

Public Sub New(year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer)

Public Sub New(year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, calendar As Calendar)

Public Sub New(year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, kind As DateTimeKind)

Public Sub New(year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, millisecond As Integer)

Public Sub New(year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, millisecond As Integer, calendar As Calendar)

Public Sub New(year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, millisecond As Integer, kind As DateTimeKind)

Public Sub New(year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, millisecond As Integer, calendar As Calendar, kind As DateTimeKind)

Internationalization (I18n) Class Overview

The DateTime Class provides methods such as DateTime.ToString and DateTime.Parse that allow you to perform culture-sensitive operations on a DateTime object. The DateTimeFormatInfo class defines how DateTime values are formatted and displayed, and is dependent on the culture. For example, using the ShortDatePattern, the date February 1, 2001 is formatted as 2/1/2001 for the "en-US" culture and 01/02/2001 for the "en-GB" culture.

See Microsoft's MSDN online documentation for more information.

I18n Issues

The DateTime class provides seven separate constructor signatures. For proper software internationalization, it is important that developers select a constructor that accepts a Calendar argument. Further, the Calendar object must be retrieved from a CultureInfo object that was instantiated according to the culture of the current user and preferably set in the current thread.

General VB.NET date/time formatting information

 

Lingoport internationalization and localization services and software