I have the below query.
select cast(dateadd(minute, datediff(minute, TimeIn, TimeOut), 0) as time(0) )
I get the results from two columns in th
$time = '02:47:00'; $time = explode(":",$time); $total = ($a[0]*60)+$a[1]; echo 'Minutes : '.$total; echo 'Seconds : '.$a[2];