Related Questions:
Can I control how the date looks for certain merge fields in my documents?
Can I hide the day of the week in my dates?
Answer:
It is possible to control how the date displays for date Merge Fields in Text Box Elements in your Documents.
Example:
default date
shortDate
d MMM - yyyy
How it looks in the Text Box editor
Instructions:
To make changes to how your date is displayed, you will need to add a piece to your Date Merge Field in the Text Box editor.
Edit the Text Box containing the Date Merge Field that you want to change
Find the Date Merge Field e.g. {{document.dueDate}}
Add this piece to your Date Merge Field after the text and within the curly brackets:
| parseDate | date:'shortDate'
Replace the bold text between the quotations with your date choices (see options below)
It will look like this: {{document.dueDate | parseDate | date:'shortDate'}}
Date Options:
These options can be combined to control each part of your date:
'yyyy'
: 4 digit representation of year'yy'
: 2 digit representation of year, padded (00-99)'y'
: 1 digit representation of year'MMMM'
: Month in year (January-December)'MMM'
: Month in year (Jan-Dec)'MM'
: Month in year, padded (01-12)'M'
: Month in year (1-12)'LLLL'
: Stand-alone month in year (January-December)'dd'
: Day in month, padded (01-31)'d'
: Day in month (1-31)'EEEE'
: Day in Week,(Sunday-Saturday)'EEE'
: Day in Week, (Sun-Sat)'ww'
: Week of year, padded (00-53).'w'
: Week of year (0-53).
These options are quick alternatives to the default date:
'longDate'
: equivalent to'MMMM d, y'
for en_US locale (e.g. September 3, 2010)'mediumDate'
: equivalent to'MMM d, y'
for en_US locale (e.g. Sep 3, 2010)'shortDate'
: equivalent to'M/d/yy'
for en_US locale (e.g. 9/3/10)