CSharp - Write program to Get a Specific Date

Requirements

When working with dates, choose some specific date.

Hint

You can create a DateTime object initialized with a specific date by calling an object's constructor.

Demo

using System;

class Program/*from ww w.  j  a v  a 2  s  .  c  o m*/
{
    static void Main(string[] args)
    {
        // A specific date 
        DateTime overlordDday = new DateTime(2018, 6, 6);
        // Output 
        Console.WriteLine( overlordDday.ToLongDateString());
    }
}

Result