You need to sign in to do that
Don't have an account?
Danielle Hensley
Code needed to take the year out of the date field to automate emails
Trying to automate the sending of surveys through email on Salesforce by using a process builder. Need a special code to take the year out of the date field so the emails can be sent twice a year around the renewal month and not just the year of the renewal.
date myDate = system.today();
integer year =myDate.year());
===
SF formula
YEAR( myDate ) it returns year of date.