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
Priyangbada Basak 9Priyangbada Basak 9 

how to add current month in letterhead.

I'm trying to add Current Month Current Year and Today's date in Letterhead but it throws error.

What formula needs to be used in letterheads to get current year, month and today's date.
​​​​​​​User-added image

Best Answer chosen by Priyangbada Basak 9
AnudeepAnudeep (Salesforce Developers) 
Enhanced Letterhead supports merge fields so all the merge fields that work in email templates should work here

My assumption is your syntax is incorrect. Here is an example merge field usage from this documentation
 
{!DATETIMEVALUE(Case.CreatedDate)}.

Also, remember that You can create a Text based Formula Field like as below and use that in the Email Template instead:

Formula Field Label: Date for Email Template
Formula Field Return Type: TEXT
Formula:
 
TEXT(MONTH(TODAY())) + TEXT(DAY(TODAY())) + TEXT(YEAR(TODAY()))

Let me know if this helps. If it does, please mark this answer as Best. It may help others in the community. Thank You!