G
Guest
Hi, All
How can check if timespan has negative value after subtraction?
Thank you,
How can check if timespan has negative value after subtraction?
Thank you,
Peter Foot said:You can use
if(mytimespan.CompareTo(TimeSpan.Zero) < 0)
{
//your timespan is negative
}
Peter
--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility