Groups | Blog | Home
all groups > dotnet compact framework > april 2005 >

dotnet compact framework : Time Difference


Beebs
4/11/2005 9:42:21 PM
I need to get the difference in time from two time fields on my form.
I have the times saved in the format "10:15 AM" and I need the
difference between the two time fields in the format "0hrs 5min
15sec". Can anyone provide me with a way to do this. I couldn't make
much sense out of the DateDiff function as I'm using VB for my
application.

ctacke/
4/11/2005 10:48:41 PM
Take a look at DateTime.Subtract as well as TimeSpan

-Chris


[quoted text, click to view]

AddThis Social Bookmark Button