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