Calculate Days between Dates -
Use daysBetween
Example-
Integer i = (system.today()).daysBetween(Date.valueOf(a.joiningDate__c))
consider 'a' as a instance of any object like Account a;
Use daysBetween
Example-
Integer i = (system.today()).daysBetween(Date.valueOf(a.joiningDate__c))
consider 'a' as a instance of any object like Account a;
Comments
Post a Comment