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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .