I have a mysql database that has a Date Received entry and a Date Sent entry. I would like to calculate how many hours in between.
This is what I have...
$strStart = $row['Date_Received']; $strEnd = $row['Date_Sent']; $dteStart = new DateTime($strStart); $dteEnd = new DateTime($strEnd); $dteDiff = $dteStart->diff($dteEnd); print $dteDiff->format("%H:%I:%S");
As usual, any help is appreciated.