Formatting Date Values in PDF
The following date formatting codes are used in conjunction with the “Date” parameter.
Parameter |
Description |
---|---|
Month (M) |
Displays the month. Formatting Codes:
Note: The letter M must be uppercase to distinguish months from minutes.
|
Day (d) |
Displays the day of the month or the day of the week. Formatting Codes:
Note: The letter d can be either uppercase or lowercase.
|
Year (y) |
Displays the year as two or four digits. Formatting Codes:
Note: The letter y can be either uppercase or lowercase.
|
Hours (h) |
A lowercase h bases time on the 12-hour clock. An uppercase H bases time on the 24-hour clock. Formatting Codes:
|
Minutes (m) |
Displays minutes. Formatting Code
Note: The letter m must be lowercase to distinguish minutes from months.
|
A.M. and P.M. (AM/PM) |
Formatting Codes:
|
Here are several common examples of the date appearance parameter. Let’s say the field we’re formatting is OPPORTUNITY_CLOSEDATE and that it contains the date 03/03/2008.
Example |
Output |
---|---|
|
03-03-2008 |
|
03/03/2008 |
Master.OPPORTUNITY_CLOSEDATE(Date "MMM dd, yyyy")
The format code is enclosed in quotes because it contains spaces |
Mar 03, 2008 |
Master.OPPORTUNITY_CLOSEDATE(Date "MMMM d, yyyy")
The format code is enclosed in quotes because it contains spaces |
March 3, 2008 |
Todays' Date:
By creating a merge field with the name Date. Today, Conga Composer will insert the current date. You may format the date using a date-formatting parameter.