DateTime.cs
Posted in Text, on September 3, 2010 at 10:00
static void Main(string[] args)
        {
            DateTime now = DateTime.Now;
            DateTime inp = new DateTime(2010, 12, 25);

            TimeSpan fark = inp - now;
            int wanteddate = 120;
            if (fark.Days < wanteddate)
                System.Console.WriteLine(\"Aboo kalan gün sayısı istenilen {0} den az sadece {1} gün kalmış\", wanteddate, fark.Days);
            System.Console.ReadKey();
        }

Share this code

| More

Use the link below to share the code:
HTML
BBCode