Answers for "date time now c sharp"

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

C# Answers by Framework

Browse Popular Code Answers by Language