using System;
using System.Globalization;
public class Example
{
public static void Main()
{
string[] cultureNames = { "en-US", "fr-FR", "de-DE", "es-ES" };
DateTime dateToDisplay = new DateTime(2009, 9, 1, 18, 32, 0);
double value = 9164.32;
foreach (string cultureName in cultureNames)
{
CultureInfo culture = new CultureInfo(cultureName);
Console.WriteLine(String.Format(culture, "{0,-11} {1,-35:D} {2:N}", culture.Name, dateToDisplay, value));
}
}
}