c# timestamp datetime now code example
Example 1: c# datetime now timestamp
String timeStamp = GetTimestamp(DateTime.Now);
Example 2: c# datetime to timestamp
DateTimeOffset.UtcNow.ToUnixTimeSeconds()
String timeStamp = GetTimestamp(DateTime.Now);
DateTimeOffset.UtcNow.ToUnixTimeSeconds()