using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { DateTime dt = new DateTime(2004, 10, 17); Console.WriteLine("The day of {0} is {1}", dt.Date, dt.DayOfWeek); } }