Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Problem 14.* Current Date and Time
- //Create a console application that prints the current date and time. Find in Internet how.
- using System;
- class CurrentDateAndTime
- {
- static void Main()
- {
- //Write the current date and time.
- DateTime now = DateTime.Now;
- Console.WriteLine("The current date and time are: {0}",now);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement