Answers for "how to get only Day/month/year from DateTime from datetime.Now in C#"

C#
0

c# remove time in datetime

var dateAndTime = DateTime.Now;
var date = dateAndTime.Date;
Posted by: Guest on February-27-2020
4

c# datetime

var dat1 = new DateTime();
// The following method call displays 1/1/0001 12:00:00 AM.
Console.WriteLine(dat1.ToString(System.Globalization.CultureInfo.InvariantCulture));
// The following method call displays True.
Console.WriteLine(dat1.Equals(DateTime.MinValue));
Posted by: Guest on July-11-2020

Code answers related to "how to get only Day/month/year from DateTime from datetime.Now in C#"

C# Answers by Framework

Browse Popular Code Answers by Language