G
gh
I have 2 columns in a grid where the user enters a begining time(TI) and
at the end of the day an end time(TO). I then want to take the TO - TI
to get the difference and display it as hours and minutes. If the
result is 7 hours and 45 minutes I would like it to be able to display
it 2 ways, as 7.45 or 7.75, if it was 8 hours then display 8.00. I have
the code below to do the subtraction, but I am not able to get the
result converted to a double.
TI = colTimeIn;
TO = colOut;
TimeResult = TO.Subtract(TI);
double aTime = Convert.ToDouble(TimeResult);<--- Errors here
How would I get the the conversion and be able to store it as a double?
TIA
at the end of the day an end time(TO). I then want to take the TO - TI
to get the difference and display it as hours and minutes. If the
result is 7 hours and 45 minutes I would like it to be able to display
it 2 ways, as 7.45 or 7.75, if it was 8 hours then display 8.00. I have
the code below to do the subtraction, but I am not able to get the
result converted to a double.
TI = colTimeIn;
TO = colOut;
TimeResult = TO.Subtract(TI);
double aTime = Convert.ToDouble(TimeResult);<--- Errors here
How would I get the the conversion and be able to store it as a double?
TIA