// Month and day "«DateVar:Third day of June», " // Year SET Temp-n TO TRUNCATE( YEAR OF( DateVar ) / 100 , 0 ) * 100 RESULT + "«Temp-n:Nine»" SET Temp-n TO YEAR OF( DateVar ) - Temp-n IF Temp-n > 0 RESULT + " and «Temp-n:Nine»" END IF
HotDocs does not provide a date format that includes and in the year, nor is it possible to create a custom format that includes and. This computation provides a way of doing it.
The computation only uses two variables, DateVar, the date variable you wish to format, and Temp-n, a temporary number variable (set its Advanced options to "Ask only in dialog," "Don't warn if unanswered," and "Don't save in answer file").
To insert the word and inside of the year, we first take only the thousands and hundreds values of the year and format them, then we insert our and and finally add on the tens and ones values of the year.
This template has everything you need set up and configured for you. It will work as-is, or can be adapted to your variable and dialog names. It contains: 1) sample Word and WordPerfect templates (or an Automator form) to demonstrate an implementation of the computation, 2) a component file containing the computation and all supporting dialogs and variables, and 3) instructions for adapting the computation for your use.