I am trying to add hours to a Date and Time field.
The formula I’m using is: DATEADD({Flight Date and Time},-{Time Prior},‘hour’)
I want the result to be the date and time, X hours before the original date ad time.
Flight Date and Time is a date field with time showing in a 12-hour format, and it’s exactly what it sounds like—the date and time of a flight.
Time Prior is a number field, and is the amount of time, in hours, I want the transportation to be on-site for the flight.
For example, .5 means 30 minutes prior. 3 means 3 hours prior.
So here’s what’s happening:
Flight Date and Time: 11/10/2022 4:00pm
Time Prior: 0.5
Result: 11/10/2022 9:20pm
It should be: 11/10/2022 3:30pm (.5 hours prior to the time)
Any ideas as to why this is happening?