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:
<
public bool HasPassed2hoursFrom(DateTime fromDate, DateTime expireDate) { return expireDate - fromDate > TimeSpan.FromHours(2); }