Compare two dates

How can I compare two dates? Like (2015-06-20 15:30) - (2015-06-15 14:12) and obtain the difference in hours?

Is posible? Thanks!

Hi, where did you get those values from ?

Are they DateTime values? In that case you can use this:

Hi, we will ship a completely new date and time api in a week or two, based on This API will have a lot more features than our current DateTime class.