DateTime.Now
using System; class MainClass { public static void Main(string[] args) { DateTime now = DateTime.Now; Console.WriteLine("Now : {0}", now); } }