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

[ad_1]

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

[ad_2]

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