Krawler interview question

Write a method to calculate difference between dates