Home

Published

- 1 min read

mysql get date difference in hours

img of mysql get date difference in hours

The solution for this is noted below

mysql get date difference in hours

Solution

   SELECT TIMESTAMPDIFF(HOUR, '2021-05-22 07:00:00', '2021-05-22 12:00:37') as time_diff_in_hours;

Try other methods by searching on the site. That is if this doesn’t work