How do I calculate elapsed time between start time and end time. I want my Length field to be populated automatically by calculating the elapsed time between start and end.
How do I calculate elapsed time between start time and end time. I want my Length field to be populated automatically by calculating the elapsed time between start and end.
Have you looked into the DateDiff() function?
What kind of times are we speaking of? In what format do you want your results, i.e. minutes... hours and minutes... days, hours and minutes?
Generally speaking, you use DateDiff(), as has been suggested, using the smallest unit of time you want to report. If you want hours and minutes you use minutes as the Interval in DateDiff() and then parse it out into hours and minutes.
Linq ;0)>