Thanks for sharing this post, Sanford. It's working great, but I am experiencing one issue that I can't figure out. In the plain text version of the email only, a line break is happening right before the date. It doesn't happen in the HTML version. Any thoughts on what might be causing this? # set ( $defaultTimeZone = $date . getTimeZone ( ) . getTimeZone ( "America/New_York" ) ) # set ( $defaultLocale = $date . getLocale ( ) ) # set ( $calNow = $date . getCalendar ( ) ) # set ( $ret = $calNow . setTimeZone ( $defaultTimeZone ) ) # set ( $calConst = $field . in ( $calNow ) ) # set ( $ISO8601 = "yyyy-MM-dd'T'HH:mm:ss" ) # set ( $ISO8601DateOnly = "yyyy-MM-dd" ) $calNow . add ( $calConst . DATE , 6 ) # define ( $enUSDayOrdinalIndicators ) 1st 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th 19th 20th 21st 22nd 23rd 24th 25th 26th 27th 28th 29th 30th 31st #end # set ( $indicatorList = $enUSDayOrdinalIndicators . toString ( ) . trim ( ) . split ( "\s?\d+" ) ) $ { date . format ( "EEEE, MMMM d'${indicatorList[$calNow.get($calConst.DAY_OF_MONTH)]}'" , $calNow , $defaultLocale , $defaultTimeZone ) }
... View more