I need to compare only the date of two fields DateTime
.
DateTime aux = new DateTime(2016, 09, 02, 10, 0, 0);
if (aux.Equals(DateTime.Now))
{
//Alguma ação...
}
In the code above, I need to enter if
when the date (09/02/2016) is equal on both objects. In this case it does not enter because the Time
of the two objects is different. What should I do?