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

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -