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