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
kstites2001kstites2001 

Date Formula to format date

I have a current custom field that is an Account_Renewal_Date__c.  I want to create a formula off of that field that then says if Account_Renewal_Date__c = 12/1/2012 the format would be December 1, 2012.  How can I do this?  Any suggestions?

Best Answer chosen by Admin (Salesforce Developers) 
Shannon HaleShannon Hale

Create a text formula field and use a case statement to convert the numeric month to the text month:

 

CASE(MONTH(Account_Renewal_Date__c),
1, "January",
2, "February",
3, "March", 
4, "April", 
5, "May", 
6, "June",
7, "July",
8, "August",
9, "September",
10, "October",
11, "November",
12, "December",
"") & " " & TEXT(DAY(Account_Renewal_Date__c)) & ", " & TEXT(YEAR(Account_Renewal_Date__c))