What is the best way of comparing two dates in jsp?

Need to know the number of days different between two dates.