Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# how to compare 2 dates without time

if(dateTime1.Date == dateTime2.Date)
  // or 
if (dateTime1.Date.CompareTo(dateTime2.Date))
{
}
Source by dotnet.microsoft.com #
 
PREVIOUS NEXT
Tagged: #compare #dates #time
ADD COMMENT
Topic
Name
9+9 =