IFormatProvider Interface Provides a mechanism for retrieving an object to control formatting.
Imports System.Globalization
Module Example
Public Sub Main()
Dim dateValue As Date = #06/01/2010 5:37PM#
Dim cultures() As CultureInfo = {New CultureInfo("en-US"), _
New CultureInfo("fr-FR"), _
New CultureInfo("it-IT"), _
New CultureInfo("de-DE") }
For Each culture As CultureInfo In cultures
Console.WriteLine("{0}: {1}", culture.Name, dateValue.ToString(culture))
Next
End Sub
End Module
Related examples in the same category