Console.WriteLine(DateTime.Now.Year);
Console.WriteLine(DateTime.Now.Month);
Console.WriteLine(DateTime.Now.Day);
Console.WriteLine(DateTime.Now.Hour);

Console.WriteLine(DateTime.Now.Minute);
Console.WriteLine(DateTime.Now.Second);

Console.WriteLine(DateTime.Now.Millisecond);

Console.WriteLine(DateTime.Now.Date);

Console.WriteLine(DateTime.Now.DayOfWeek);   //Sunday
Console.WriteLine(DateTime.Now.DayOfYear);   //第106天

Console.WriteLine(DateTime.Now.ToLongDateString());    //2017年4月16日
Console.WriteLine(DateTime.Now.ToLongTimeString());   //11:36:33

Console.WriteLine(DateTime.Now.ToShortDateString());   //2017/4/16
Console.WriteLine(DateTime.Now.ToShortTimeString());   //11:36