ellapt

T11.3.DayOfWeek

Jan 25th, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. using System;
  2.  
  3. class DayOfWeek
  4. {
  5. static void Main()
  6. {
  7. Console.WriteLine("Print to the console which day of the week is today:\n");
  8. DateTime today = DateTime.Now;
  9. Console.WriteLine("Today it is {0}.\n",today.DayOfWeek);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment