Advertisement
AnitaN

01.Intro-Programming-Homework/14.Current-Date-And-Time

Mar 9th, 2014
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. //Problem 14.* Current Date and Time
  2. //Create a console application that prints the current date and time. Find in Internet how.
  3.  
  4. using System;
  5.  
  6. class CurrentDateAndTime
  7. {
  8.     static void Main()
  9.     {
  10.         //Write the current date and time.
  11.         DateTime now = DateTime.Now;
  12.         Console.WriteLine("The current date and time are: {0}",now);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement