HotDocs Date variables allow you to prompt for dates during an interview, and then use date formats to control how the answers are formatted when they are merged into the assembled document. Sometimes, however, you may need to use Text variables instead of Date variables for dates in the interview. For example, if you map HotDocs variables to date/time fields in a database, they can be mapped only to Text variables.
When you use a Text variable instead of a Date variable, there is no direct way to change the format in which the date appears in the document. For example, if the text answer is 4/22/1989 10:45 AM, HotDocs cannot automatically format the answer in the assembled document as April 22, 1989. Instead, you must first convert the text answer to a date answer.
The following computation converts a date/time answer stored in a Text variable to a date answer and stores it in a Date variable. This Date variable can then be used in the assembled document and formatted like any other Date variable.