using System;
using System.Globalization;
using System.Threading;
class Class1 {
static void Main(string[] args) {
CultureInfo MyCulture = new CultureInfo("fr-FR");
DateTime MyDate = System.DateTime.Now;
Thread.CurrentThread.CurrentCulture = MyCulture;
Console.WriteLine(MyDate.ToLongDateString());
Console.WriteLine(MyDate.ToLongTimeString());
Console.WriteLine(MyDate.ToShortDateString());
Console.WriteLine(MyDate.ToShortTimeString());
}
}
|