Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

djava days between two dates

//24-May-2017, change this to your desired Start Date
LocalDate dateBefore = LocalDate.of(2017, Month.MAY, 24);
//29-July-2017, change this to your desired End Date
LocalDate dateAfter = LocalDate.of(2017, Month.JULY, 29);
long noOfDaysBetween = ChronoUnit.DAYS.between(dateBefore, dateAfter);
System.out.println(noOfDaysBetween);
 
PREVIOUS NEXT
Tagged: #djava #days #dates
ADD COMMENT
Topic
Name
1+2 =