Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

days between two dates android

long diff = endDateValue.getTime() - startDateValue.getTime();
System.out.println ("Days: " + TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #days #dates #android
ADD COMMENT
Topic
Name
5+1 =