Is there a better .net way to check if a DateTime has occured \'today\' then the code below?
if ( newsStory.WhenAdded.Day == DateTime.Now.Day &&
My solution:
private bool IsTheSameDay(DateTime date1, DateTime date2) { return (date1.Year == date2.Year && date1.DayOfYear == date2.DayOfYear); }