How to find number of days between two Dates in Apex?

Sample Code:

public Integer temp;

public Date d {get ; set;}

temp = d.daysBetween(Date.Today()); // Returns Number of days between d and today.

No comments:

Post a Comment