I have two date time, date1 = '2012/10/18 14:12:12' date2 = '2012/10/18 14:20:12'
and the date2-date1 is 8 in minute. I want to get the diffrent in minutes.
But if the date2 > date1
date1 = '2012/10/18 14:02:12' date2 = '2012/10/18 14:10:12'
Then I want to get the -8 result. How can I do this in php?