5
I only need to compare 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 you to enter if
when the date (02/09/2016) is equal in the two objects. In this case it does not enter because the Time
of the two objects is different. What should I do ?