I've tried looking around the web but didn't find enough info to convert end date field into time remaining.
Right now I have this code:
echo '
<tr>
<td style="background: #f0f0f0;" width=50% align=center>'.$row['end_date'].'</td>
</tr>';
which shows a value end_date from sql. However, I need to use Time left instead, so to convert it into x days x hours x minutes x seconds left. The date itself looks like this: 2017-02-08 20:52:20
Could anyone help me out, please?