Reformat Dates

  • Updated

Zingtree has built a handy webhook where 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 calculation to take place. Here's how to set it up:

Step 1: Add the Webhook to your Organization

  1. Go to Account Settings, My Apps.
  2. Click on Add Webhook.
  3. 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: Call the webhook from your tree

Open your tree, and add the webhook to a node before you want a new date format to appear.

  1. Under the Apps / Webhooks tab, click Add App / Webhook.
  2. Pick the Webhook you added previously (Reformat Date , for example).
  3. In the Message Data area, enter something like this:
    var={Name of variable to hold the new date}&format={format of the new date}&date={date}
    Note: Date Formats can be found here.
  4. Save the changes to the node.


Your edits should look something like this:

2022-04-05_08-56-42.png

Now just use #‌new_date# anywhere you want to show the future date.

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Didn't find what you need?

Our friendly customer support team is here to help

Submit a Ticket

Looking for help or advice?

Reach out to our knowledgeable community of users.

Zingtree Community