Check out example codes for "c# how to compare 2 dates without time". It will help you in understanding the concepts better.
Code Example 1
if(dateTime1.Date == dateTime2.Date)
// or
if (dateTime1.Date.CompareTo(dateTime2.Date))
{
}
Learn ReactJs, React Native from akashmittal.com