Demo entry 6763444

Aa

   

Submitted by anonymous on Oct 22, 2018 at 19:43
Language: C#. Code size: 870 Bytes.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime ilkTarih = new DateTime(2008, 07, 12, 20, 12, 23, 33);
            DateTime bitisTarihi = ilkTarih.AddYears(5);
            bitisTarihi = bitisTarihi.AddMonths(6);
            bitisTarihi = bitisTarihi.AddDays(28);
            bitisTarihi = bitisTarihi.AddHours(23);
            bitisTarihi = bitisTarihi.AddMinutes(29);
            bitisTarihi = bitisTarihi.AddSeconds(33);
            bitisTarihi = bitisTarihi.AddMilliseconds(43);
            Console.WriteLine("─░lk tarih: " + ilkTarih);
            Console.WriteLine("Son tarih: " + bitisTarihi);
            Console.ReadKey();
        }
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).