Originally posted by daarius
$seconds1 = strtotime($dateSource1);
$seconds2 = strtotime($dateSource2);
$result = $seconds2 - $seconds1;
simple as that. [/B]
I initially tried to do that and using his date string didn't work. I got different dates when checking the stamp that was made.
First String orig = 21/10/2002 12:00:00 stamp = 1063213200 date from stamp = 2003-09-10 12:00
Second string orig = 22/10/2002 13:30:00 stamp = 1065810600 date from stamp = 2003-10-10 01:30
so maybe I had something wrong, but the date format dd/mm/yyyy hh:mm didn't give the correct timestamp.