using System;
using System.Globalization;
class MainClass
{
public static void Main()
{
DateTime dtNow = DateTime.Now;
Double curOriginal = 12345.67;
CultureInfo ci2 = new CultureInfo("en-GB");
string sLocalizedDate2 = dtNow.ToString("d", ci2);
string sLocalizedCur2 = curOriginal.ToString("c", ci2);
Console.WriteLine(sLocalizedDate2);
Console.WriteLine(sLocalizedCur2);
}
}
|