Time calculation - the best method

hog

Senior Contributor
Joined
Mar 17, 2003
Messages
984
Location
UK
I am trying to keep a running ttal of hours/minutes spent servicing equipment. I see now there is a Timespan object in .NET.

Should I be using this to keep a time total or the Dateadd or Datediff functions.
 
I think you should be using TimeSpan since DataDiff is in the Microsoft.VisualBasic namespace. But that's probably little more than a personal preference to try and avoid that namespace as much as possible.
 
OK thanks, but can you explain why you should avoid the microsoft.visualbasic namespace?
 
Back
Top