I'm needing to determine the difference between the time which we promised our service technician would arrive and the actual time by calculating two fields PTime (the Promised time) and ATime (Actual arrival time).
Ptime is formatted as a String (5 characters) and is presented like hh:mm. So if we promised to arrive at noon it would be a string but would see 12:00
However, my field for the actual arrival time ATime is formatted as DateTime (3/8/2012 12:00:00PM)
I would like the result to be a DateTime format in case I need to drop the data into an excel pivot table and run additional calculations.
I tried using CTime ({PTime}), which I think worked for the calculation, but it returned a number.
I would like the result of the calculation to show +/- depending on whether the actual arrival time was early or late. So if the service tech promised our customer that he would arrive at noon, and showed up at 12:30, I want to see - 30:00 or (30:00) and if he showed up at 11:50 I want to be able to see +10:00 or 10:00.
Any help would be appreciated. Thank you in advance
Ptime is formatted as a String (5 characters) and is presented like hh:mm. So if we promised to arrive at noon it would be a string but would see 12:00
However, my field for the actual arrival time ATime is formatted as DateTime (3/8/2012 12:00:00PM)
I would like the result to be a DateTime format in case I need to drop the data into an excel pivot table and run additional calculations.
I tried using CTime ({PTime}), which I think worked for the calculation, but it returned a number.
I would like the result of the calculation to show +/- depending on whether the actual arrival time was early or late. So if the service tech promised our customer that he would arrive at noon, and showed up at 12:30, I want to see - 30:00 or (30:00) and if he showed up at 11:50 I want to be able to see +10:00 or 10:00.
Any help would be appreciated. Thank you in advance