Answers for "c# new date time now"

C#
3

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

C# Answers by Framework

Browse Popular Code Answers by Language