java - Finding Date Difference -
What is the efficient way to say whether a date is compared to some day 5 days earlier? Do I need to parse both days before using a particular simple data format before comparing it?
days = (date2.getTime () - date1.getTime ()) / 86400000L
Comments
Post a Comment