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
Swati TandaleSwati Tandale 

How to include Current Year in the email templates in salesforce? I just want the Year not the date/time.

How to include Current Year in the email templates in salesforce? I just want the Year not the date/time.
 Should I create a create formula field on the object and and then use that field in the merge fields?
What is the formula to show current year? 
For example: my template says thank you for applying for the [year] 2022. 

Any help is appreciated!
 
Best Answer chosen by Swati Tandale
PriyaPriya (Salesforce Developers) 

Hey Swati,

Create a Text type formula field - TEXT(YEAR(TODAY())), and add it as a merge field in your email template.

Kindly mark it as the best answer so that it can help others as well.

Thank you,

Priya Ranjan