Mega Code Archive

 
Categories / C# / Date Time
 

What day of the month is this

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);     } }