Answers for "c# how to compare 2 dates without time"

C#
2

c# how to compare 2 dates without time

if(dateTime1.Date == dateTime2.Date)
  // or 
if (dateTime1.Date.CompareTo(dateTime2.Date))
{
}
Posted by: Guest on May-14-2020

C# Answers by Framework

Browse Popular Code Answers by Language