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:

https://www.fusetools.com/developers/api/uno/datetime/op_lessthan_c3889b42

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