[Solved] Return the difference between two (dates and time ) PHP


use strtotime, it’s understands almost any date formats:

$timeDiff = abs(strtotime($today) - strtotime($update_date));

this gives you the difference between dates in seconds.

2

solved Return the difference between two (dates and time ) PHP