Advertisement
Venciity

[SoftUni C#] Introduction - 14.CurrentDateAndTime

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