Published
- 1 min read
c# datetime now timestamp
The solution for this is noted below
c# datetime now timestamp
Solution
var Timestamp = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds();
Try other methods by searching on the site. That is if this doesn’t work