How do I calculate the difference between two dates in hours?
For example:
day1=2006-04-12 12:30:00 day2=2006-04-14 11:30:00
In thi
$diff_min = ( strtotime( $day2 ) - strtotime( $day1 ) ) / 60 / 60; $total_time = $diff_min;
You can try this one.