Answers for "c# convert long to datetime"

C#
1

c# datetime to timestamp

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

c# convert long to int

// wraps around
int myIntValue = unchecked((int)myLongValue);

// throws OverflowException
Convert.ToInt32(myValue);
Posted by: Guest on August-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language