The below method daysBetween
is used to find number of days between two dates.
Integer noOfDays = startDate.daysBetween(endDate);
The below method daysBetween
is used to find number of days between two dates.
Integer noOfDays = startDate.daysBetween(endDate);