I\'m reading the date expires cookie (2 hours) from database, and I need to check if this date has passed. What\'s the best way to do this?
For example:
<
bool HasPassed2hoursFrom(DateTime now, DateTime expires) { return (now - expires).TotalHours >= 2; }