Calculate the number of Months between two Date fields #inSalesforce

Calculate the number of Months between two Date fields

FLOOR(((MONTH(endDate__c) + (( 12 * (YEAR(endDate__c) - YEAR(startDate__c))))) - MONTH(startDate__c)))


Visual: https://www.youtube.com/watch?v=HIU5zXJT6Ok

Comments