Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- /*
- from Lesson 6 of C# console programming tutorial series at following URL:
- http://williammillerservices.com/windows-c-console-programming/
- demonstrates use of the .Now property of the DateTime type.
- GitHub gist -> https://gist.github.com/kyrathasoft/c8494198fc841cb66898a4017f89ed0c
- Pastebin.com ->
- */
- namespace MyNamespace
- {
- class MyClass
- {
- static void Main(string[] args)
- {
- DateTime dtNow = DateTime.Now;
- string p = "The current date and time: ";
- Console.WriteLine(p + " {0}", dtNow.ToString());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement