I have this email script that is working correctly: #set( $inTimeZone = $date.getTimeZone().getTimeZone('America/New_York') )
#set( $outTimeZone = $date.getTimeZone().getTimeZone('America/New_York') )
#set( $locale = $date.getLocale() )
#set( $myDate = $convert.parseDate($lead.End_Date_Formula__c,'yyyy-MM-dd',$locale,$inTimeZone) )
${date.format('EEEE, MMMM dd, yyyy',$myDate,$locale,$outTimeZone)} the only thing left is that I want to set the default value, so if the lead.end_date_formula_C is blank, then I want "the end of the month" to appear instead. Is this on the right track? #if( ${lead.End_Date_Formula__c} == "" )
#set (
... View more