Hi All,
In excel i am importing two columns into Arrays and then comparing the datetimes that were in each column
I need to add one hour to one of the dates so i did the following:
dm = (CDate((DeliveryStart(p, 1))) + DateAdd("h", 1, de)) (de is just something i added into DateAdd it does not represent anything)
I then compare dm with another date like so:
Do Until (DateValue(dm) = DateValue(ContractStartDateandTime(j, 1)))
but the above is telling me that 02/05/2020 07:00:00 is the same as 02/05/2020 03:00:00
can you help in a better way of adding an hour and then comparing. The above i have cobbled from internet searches
Regards
In excel i am importing two columns into Arrays and then comparing the datetimes that were in each column
I need to add one hour to one of the dates so i did the following:
dm = (CDate((DeliveryStart(p, 1))) + DateAdd("h", 1, de)) (de is just something i added into DateAdd it does not represent anything)
I then compare dm with another date like so:
Do Until (DateValue(dm) = DateValue(ContractStartDateandTime(j, 1)))
but the above is telling me that 02/05/2020 07:00:00 is the same as 02/05/2020 03:00:00
can you help in a better way of adding an hour and then comparing. The above i have cobbled from internet searches
Regards