Date to Text
Convert a date and time into a provided format in a specified time zone.
Input
| Field | Definition | Type | Required |
|---|---|---|---|
|
start |
Date and time value to be formatted. |
Date & Time | TRUE |
|
format |
The date format code of the desired output value, based on the start field. For example, use |
Text | TRUE |
|
zone |
A |
Text | TRUE |
Output
| Field | Definition | Type |
|---|---|---|
|
output |
The date string, in the chosen format and in the designated time zone. |
Text |
Format Codes
Use any combination of these codes, along with fixed characters such as slashes and commas, to build the date or time format that you want.
| format codes | output |
|---|---|
|
|
For a day number (in the month), or use |
|
|
For a single month number, or use |
|
|
For a three letter month abbreviation, or use |
|
|
For a four-digit year number, or use |
|
|
For the hour number (1-12), or use |
|
|
For the hour number (0-23), or use |
|
|
For the minutes. |
|
|
For the seconds. Add an |
|
|
For am or pm designation, or use |
|
|
For the time zone in offset format, for example, |
|
|
For the day of the week, where |
Examples
If the ISO start date is 2016-09-07T00:01:25.670Z and the time zone is America/Pacific, then do the following:
| format | output |
|---|---|
|
|
9/6/2016 |
|
|
9:01 am PDT |
|
|
Wednesday, September 7, 2016 |
|
|
7-Sep-16 09:01:25.6 PDT |
If you want to format the current date and time, use a Now card. Drag and drop the date field from the Now card into the start field on the Date To Text card.