c# dotnet core get date timestamp code example
Example 1: c# datetime now timestamp
String timeStamp = GetTimestamp(DateTime.Now);
Example 2: c# datetime now timestamp
var Timestamp = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds();
String timeStamp = GetTimestamp(DateTime.Now);
var Timestamp = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds();