I've a list of brazilian Holidays, so I got this:
[0] {01/01/2010 00:00:00} System.DateTime
[1] {16/02/2010 00:00:00} System.DateTime
[2] {02/04/2010 00:00:00} System.DateTime
[3] {04/04/2010 00:00:00} System.DateTime
[4] {21/04/2010 00:00:00} System.DateTime
[5] {01/05/2010 00:00:00} System.DateTime
[6] {03/06/2010 00:00:00} System.DateTime
[7] {07/09/2010 00:00:00} System.DateTime
[8] {12/10/2010 00:00:00} System.DateTime
[9] {02/11/2010 00:00:00} System.DateTime
[10]{15/11/2010 00:00:00} System.DateTime
[11]{25/12/2010 00:00:00} System.DateTime
And when in a method I receive dateTime = {03/06/2010 19:00:00}
and call:
HolidayDates.Contains(dateTime)
Why it returns false? What's the better way to deal with contains in date?