Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql get date difference in hours

SELECT TIMESTAMPDIFF(HOUR, '2021-05-22 07:00:00', '2021-05-22 12:00:37') as time_diff_in_hours;
 
PREVIOUS NEXT
Tagged: #mysql #date #difference #hours
ADD COMMENT
Topic
Name
5+4 =