I have a form that contains Date Opened Time Opened Date Closed and Time Closed.
The calculation for the diff in days between Date Opened and Date Closed works just fine including if the date is the same it returns 0 for days.
My problem is many times the Dates are O so I need to calculate the time diff so it can be saved to the DB.
For instance if Time Opened is 8:45:22 AM and Time Closed is 11:31:30 PM on the same day how do I calculate the hours? remembering that sometimes both the Open and Closed Times could be AM.
I know I need to start with an if Date Opened = Date Closed Then Time Diff = ??????
Thanks for any and all help. I'm hoping to get this solved by Monday since the boss is pressuring
The calculation for the diff in days between Date Opened and Date Closed works just fine including if the date is the same it returns 0 for days.
My problem is many times the Dates are O so I need to calculate the time diff so it can be saved to the DB.
For instance if Time Opened is 8:45:22 AM and Time Closed is 11:31:30 PM on the same day how do I calculate the hours? remembering that sometimes both the Open and Closed Times could be AM.
I know I need to start with an if Date Opened = Date Closed Then Time Diff = ??????
Thanks for any and all help. I'm hoping to get this solved by Monday since the boss is pressuring