Answers for "get timestamp c#"

C#
1

c# datetime now timestamp

var Timestamp = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds();
Posted by: Guest on July-05-2020
0

c# datetime now timestamp

String timeStamp = GetTimestamp(DateTime.Now);
Posted by: Guest on July-05-2020
-1

c# timestamp

public static String GetTimestamp(DateTime value)
{
    return value.ToString("yyyyMMddHHmmssffff");
}
//  ...later on in the code
String timeStamp = GetTimestamp(new DateTime());
Console.WriteLine(timeStamp);
Posted by: Guest on October-22-2021

C# Answers by Framework

Browse Popular Code Answers by Language