views:

106

answers:

1

I'm sure this is easy but it has had me stumped for ages. I need to compare two dates and only return the hours and minutes difference. Thanks for any ideas :)

+3  A: 

Get the unix timestamp of them both and subtract the earlier from the later. The result will be the number of seconds that has passed between the two dates.

Evernoob
thanks, knew it would be simple had been working with ISO and getting a headache.
piddl0r