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?

itemprop = "text">

  days = (date2.getTime () - date1.getTime ()) / 86400000L  

Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -