I want to compare two dates if the difference between them is less than 10 minutes. How do I do that?
Date created = Date.parse('yyyy-MM-dd HH:mm:ss','2014-06-05 10:19:04')
Date now = new Date()
now.compareTo(created) gives me 1 but I want to compare the minute difference.