What format does the date have to be in to do hour difference calculation.
Right now, I have it as 03/01/2022T6:45:00 PM as an example.
I looked at the post about the java script I could run where you have date 1 and time 1 in different columns. but it looks like the function merges them to 1 with the T in the middle and then does the subtraction. Why could I not get the date set up correctly first and do a simple calculation?
I tried this path and can get it to work if I can take the time to get the time format into military. that just takes a very careful splitting and rejoining of the data. makes me nervous to tweak base data that much. any tricks for quick transforms to military time from something that looks like 06:45:00 AM?
Awesome. I did this via another route, but got the same result. question. how do you have mathematical functions into the if statement function. in your example
If Column 1 = PM
then, time1 + 12
else, time 1
In this case, time1 would be the number associated with the column with AM/PM…
EX
time1 column1
6 PM
appreciate your help thus far. I always try to search things before posting, but cant always find specific examples. if you can do math with an if statement, that would be helpful as a tip in the if statement ? area
ahhh. yes. nice. what about turning negative numbers positive?
there will be may of these where the end time is 6 and the beginning time is 18 and the number will be -12, which is a 12 hour shift. any way to convert neg to pos?