how to convert time into timestamp in c# code example Example: c# datetime to timestamp DateTimeOffset.UtcNow.ToUnixTimeSeconds()