Notes
Returns the number of days between the Date that called the method and the specified date.
Here are some examples:
Date startDate = Date.newInstance(2008, 1, 1);
Date dueDate = Date.newInstance(2008, 1, 30);
Integer numberDaysDue = startDate.daysBetween(dueDate);
System.debug(numberDaysDue);
Output: 29
Video
Video does not exists.