Answers for "convert to timestamp c#"

C#
1

c# datetime to timestamp

DateTimeOffset.UtcNow.ToUnixTimeSeconds()
Posted by: Guest on October-12-2020
-1

c# convert datetime to unix timestamp

Int32 unixTimestamp = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds;
Posted by: Guest on December-11-2020

Code answers related to "convert to timestamp c#"

C# Answers by Framework

Browse Popular Code Answers by Language