NEW
For more powerful tools consider the new Zingtree CX Actions instead.
Zingtree has built a handy webhook so that you can reformat a date to a new format. You just need to add a new Webhook and install it into the node where you want the new format to take place. Here's how to set it up:
Step 1: Add the Webhook to your Organization
From the Apps & Integrations menu, choose My Apps:
This page lists all of the Apps you have presently installed. You can edit, duplicate, or delete any of them from the list. In the Uses column, you can easily see how many trees an individual App is being used. Click on the number in the Uses column to see which trees are using that App.
Adding a new App
Click the Install App button. You'll then see this screen:
Choose the Webhook button to add a new Webhook. You'll see these options.
- Go to Apps & Integrations > My Apps
- Click on Add Webhook.
-
Give the Webhook a name (like "Reformat date"), and enter this for the webhook URL:
https://zingtree.com/apps/webhook/filters/date-reformat.php?
The end result looks like this:
Step 2: Collect a date in your workflow
Set up a data entry field in your workflow using the Date field type and the variable name of:
dateStep 3: Call the webhook from your workflow
Open your workflow, and add the webhook to a node before you want a new date format to appear.
- Under the Apps / Webhooks tab, click Add App / Webhook.
- Pick the Webhook you added previously (Reformat Date , for example).
-
In the Message Data area, enter something like this:
var=new_date&format=yy-mm-dd&date=dateHere's what that message data means:
var: The new variable that will be created with the new date format.
format: The format of the new date. Note:Date Formats can be found here.
date: the name of the variable used in the date you originally collected in Step 2.
Save the changes to the node. Your edits should look something like this:
Now just use #new_date# anywhere you want to show the newly formatted date.