I don't know what exactly date picker do you have, but they all should have something like
Value
property of the type
System.DateTime
,
http://msdn.microsoft.com/en-us/library/system.datetime.aspx[
^].
And this type has subtraction operation defined. So, if you have two times, the difference can be found like this:
System.DateTime t1 =
System.DateTime t2 =
System.TimeSpan = t2 - t1;
Finally, look at
System.TimeSpan
structure to see what is that:
http://msdn.microsoft.com/en-us/library/system.datetime.aspx[
^].
—SA