now

                Never    
C#
       
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());
        }
    }
}

Raw Text