title: Subtracting two SimpleDateFormat to get the difference in days
body: <p>I'm making a simple app where i get I get time is as a long and the current time from calendar.getInstance() (the current time).</p>
  
  <p>I would like to check the difference in days between the 2 dates.</p>
  
  <pre><code>Long date1 = 1499175346756l;
  
      SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM.yy.HH.mm.ss");
      Calendar c = Calendar.getInstance();
      String formattedDate = dateFormat.format(c.getTime());
  </code></pre>