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.

1 Answer 1


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, 2019 at 19:35
  • Please mark this as answer so that question can be closed. Jun 14, 2019 at 21:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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