How to check if a DateTime occurs today?

if (newsStory.WhenAdded.Date == DateTime.Today)
{

}
else
{

}

Should do the trick.

Leave a Comment