code: public static int getDaysPassedSince(Date dateLastModified) {
  
          GregorianCalendar now = new GregorianCalendar();
          GregorianCalendar lastModified = (GregorianCalendar)now.clone();
          lastModified.setTimeInMillis(dateLastModified.getTime());
          return (now.get(Calendar.DAY_OF_YEAR) - lastModified.get(Calendar.DAY_OF_YEAR))
              + ((now.get(Calendar.YEAR) - lastModified.get(Calendar.YEAR)) * 365);
      }
docs: Returns the number of days passed since a specific date.<p>
  
  @param dateLastModified the date to compute the passed days from
  
  @return the number of days passed since a specific date