Answers for "datetime.now with time c#"

C#
4

c# datetime current

DateTime now = DateTime.Now;
string strDate = now.ToString("YYYY-MM-dd");
Posted by: Guest on January-21-2021
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

C# Answers by Framework

Browse Popular Code Answers by Language