I have a data set with a date and time variable as below. My ultimate goal is to calculate the different in hours between date1 at time1 and date2 at time2. However, I am having significant problems converting the time1 and time2 variable into a mm:hh format which I can then use to combine with my date variable. Any suggestions?
date1 | time1 | date2 | time2 |
11/2/2016 | 11:00 | 11/3/2016 | 14:30 |
11/15/2016 | 21:45 | 11/16/2016 | 11:45 |
12/21/2016 | 9:30 | 12/22/2016 | 9:55 |
11/16/2016 | 10:00 | 11/17/2016 | 10:00 |
11/28/2016 | 8:26 | 11/29/2016 | 13:46 |
12/1/2016 | 15:30 | 12/2/2016 | 13:49 |
12/4/2016 | 18:25 | 12/6/2016 | 8:45 |
12/14/2016 | 22:00 | 12/16/2016 | 8:45 |
12/27/2016 | 14:50 | 12/28/2016 | 16:30 |
12/29/2016 | 15:30 | 12/30/2016 | 10:00 |
1/1/2017 | 18:40 | 1/2/2017 | 14:20 |
1/4/2017 | 22:35 | 1/5/2017 | 11:40 |
1/5/2017 | 1010 | 1/6/2017 | 15:50 |
1/9/2017 | 1902 | 1/10/2017 | 15:10 |
12/6/2016 | 1502 | 12/7/2016 | 9:29 |
Comment