Formatting Date and Time Inserts
When you use a paragraph insert that refers to a date or time field, it is often desirable to define the format in which the date will appear.
There are several pre-defined date formats, or you can create a custom format.
To use a pre-defined date format:
Paste the paragraph insert for the date field that you want to use into the paragraph editor.
Place the cursor just inside the closing bracket of the new insert.
Navigate to the Formats folder, select the pre-defined date format that you want to use. The pre-defined date format will be inserted into the paragraph insert for the date field.
Custom Formats
You can create your own custom formats to specify a date in many ways to suit your particular needs. Simply piece together the various format strings from the following table. Some examples follow.
Format String | Description | Example (Wednesday, June 7, 2017) |
---|---|---|
dddd | Name of the weekday spelled out in full. | Wednesday |
ddd | Abbreviated weekday name. | Wed |
dd | Day of the month. Values less than 10 will include a leading 0. | 07 |
d | Day of the month. No leading 0. | 7 |
mmmm | Name of the month spelled out in full. | June |
mmm | Abbreviated month name. | Jun |
mm | Month number. Values less than 10 will include a leading 0. | 06 |
m | Month number. No leading 0. | 6 |
yyyy | Four-digit year. | 2017 |
yy | Two-digit year. | 17 |
hh | Hours. Values less than 10 will include a leading 0. |
|
h | Hours. No leading 0. |
|
nn | Minutes. Values less than 10 will include a leading 0. |
|
n | Minutes. No leading 0. |
|
ss | Seconds. Values less than 10 will include a leading 0. |
|
s | Seconds. No leading 0. |
|
AM/PM | Add this string following a time format to indicate that the time should be given in 12-hour format with either an AM or PM designator. If this is not specified, the default is to show times in 24-hour format. |
|
Examples
Insert: | [special.today,dddd, mmmm d, yyyy] |
Output: | Wednesday, June 7, 2017 |
|
|
Insert: | [special.today,dd-mmm-yyyy] |
Output: | 07-Jun-2017 |
|
|
Insert: | [special.now,hh:nn:ss AM/PM] |
Output: | 02:15:36 PM |
|
|
Insert: | [special.now,hh:nn:ss] |
Output: | 14:15:36 |