Extracting year in a given date in C#

The code below extracts the year in a given date.

using System;

namespace forgetCode
    class Program
        static void Main(string[] args)

            Console.WriteLine("Enter year in the format dd-mm-yyyy");
            DateTime dt = Convert.ToDateTime(Console.ReadLine());

            //Know the year

            int year = dt.Year;

            Console.WriteLine("The year in the date you entered: "+year);


Enter year in the format dd-mm-yyyy
The year in the date you entered: 2056