DateTime.Now.Day
DateTime.Now.DayOfWeek
DateTime dt = new DateTime(); Console.WriteLine("The day of the week for {0:d} is {1}.", dt, dt.DayOfWeek); // Outputs: The day of the week for 12/2/2010 is Thursday.
using System; DateTime today = DateTime.Today;
DateTime todayDate = DateTime.Today; int todayYear = todayDate.Year; int todayMonth = todayDate.Month; int todayDay = todayDate.Day;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)