Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Affichage de la date selon la configuration de l’ordinateur


{filelink=19652}

using System;
using System.Globalization;
 
public class ExCulInv
{
    public static void Main(String [] argv)
    {
 
        DateTime dt = DateTime.Now;
 
        // Afficher selon la configuration de l'ordinateur
        CultureInfo iv = CultureInfo.InvariantCulture;
        Console.WriteLine(dt.ToString(iv));
        Console.WriteLine(dt.ToString("d", iv));
    }
}

No comments yet.

Leave a Comment