function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Date Field 3 Months Out on 15th Day

I have a standard date field that I would like to use in a formula field to timestamp 3 months out on the 15th of the month. For example. if the date field was in 6/24/15 I want the formula date field to read 9/15/15 (regardless of the number of days in a month).

Any help would be greatly appreciated!
James LoghryJames Loghry
I believe you want something like this:

This formula returns a Date type (You can convert it to text if you need to).  The FLOOR(...) function handles the situations where you get into October, November, or December and need to wrap into the next year by using some simple math calculations.
@James Loghry I'm totally stealing the FLOOR thing, much cleaner than my usual "rubbing two sticks together to make fire" approach:
YEAR( Date_1__c ) + 
IF(MONTH(Date_1__c) > 9, 1, 0), 
MONTH(Date_1__c) + 
IF(MONTH(Date_1__c) < 10, 3, -9), 

This was perfect. Thank you so much!
I updated your formula as shown below but I'm having issues with December months not calculating dates.  I'm only adding 1 month but this fails on all December dates.  Any idea what I'm missing.


The original post is 6+ years old, if I was to write this formula today I would just use the ADDMONTHS function
Like this
ADDMONTHS( MtgPlanner_CRM__Closing_Date__c , 1)

Thanks SteveMo - that was an easy fix and somehow made this more complicated than was necessary.  
Sean RalphSean Ralph

Thanks for a great intel guys.  Related question:

What would the formula be to set a Due Date equal to the 15th of the next month?

E.g. Invoice Date = 1-Nov-21, Due Date should be 15-Nov-21 

Would this be the correct syntax?


It would be'
DATE( YEAR( blng__Invoice_Date__c ), MONTH(blng__Invoice_Date__c), 15 ),

That's not the formula that I posted