how to get the date from a unix time C# code example Example: get unix time in seconds C# DateTimeOffset.UtcNow.ToUnixTimeSeconds()