c# date timestamp code example Example: c# timestamp now DateTime now = DateTime.Now; Console.WriteLine("NOW: " + now);