How to find number of days between two dates using Apex?

Integer noOfDays = startDate.daysBetween(endDate);

The above formula is used to find number of days between two dates.


Cheers!!!

5 comments: