CSharp - Write program to Get What Date Is It Today?

Requirements

Get only in today's date, with the time component excluded.

Hint

Use DateTime.Today

Demo

using System;

class Program//w  w w  .j  a v a 2s.  c  om
{
    static void Main(string[] args)
    {
        // Variable of DateTime type, at first empty 
        DateTime today;

        // Storing of today's date (without time component) 
        today = DateTime.Today;

        // Output 
        Console.WriteLine("Today is " + today);
    }
}

Result