QUESTION: What is the easiest way to find the difference between two dates?
DateTime userLoginTime = (DateTime)roteTimeout.LastLoginTime;
TimeSpan span = DateTime.Now.Subtract(userLoginTime);
if (span.Seconds > userTimeout.TimeoutPeriod)
{
}
QUESTION: What is the easiest way to find the difference between two dates?
DateTime userLoginTime = (DateTime)roteTimeout.LastLoginTime;
TimeSpan span = DateTime.Now.Subtract(userLoginTime);
if (span.Seconds > userTimeout.TimeoutPeriod)
{
}