I have jquery hours range picker and I am not using 'am' & 'pm' notation. I prefer 24h. I need to calculate the hours difference between selected hours.
User selects '09:00' & '12:00' -> 3 hours
My problem is with if he selects '20:00' & '00:00' -> must be 4
hours but gives negative. Alternatively; '23:00' & '02:00' -> negative
Should I take abs? or any other way?