Hi guys,
this may be a really basic question but what is the best way to record durations, not time?
I want to have a table that records charging data such as below:
startDate
startTime Duration
(hh:mm:ss)15/04/2012 12:00:00 13:00:00
In this example you can see we started charging the device at 12pm on 15/04/2012 for 13 hours, from this I will be working out the endDate/time using dateAdd etc.
Do I set the duration field up as a dateTime and if so how do I avoid the DB thinking that the field is a time and not a duration, meaning that the endDate would be 1pm on the 15/04/2012 instead of the correct 1am on the 16/04/2012?
Cheers