I am new to Salesforce and need to know how to implement a months between dates fromula. The formula needs to be created in Flow Builder as a formula resource. Most of the examples I looked at refers to Apex.


This formula can be utilized to get month difference in Flow.

MONTH( {!EndDate}) + 12 - MONTH( {!StartDate}) + 12 * (YEAR(EndDate) - YEAR(StartDate) -1)

StartDate - A variable of Date Type

EndDate - A variable of Date Type

DateDiff - A Variable of Number Type

Date Difference Formula DateDiff Formula

Assign Values in Variables Assign Values in Variables

  • Thanks. This worked. – Kat Jun 14 '19 at 19:35
  • Please mark this as answer so that question can be closed. – Dhanik Lal Sahni Jun 14 '19 at 21:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.