Workflow Action - Dare/Time Formatter

Modified on: Sat, 7 Sep, 2024 at 5:59 AM

TABLE OF CONTENTS


Overview

The Date/Time Formatter action allows you to format and compare date fields within workflows. This action helps transform or evaluate dates to better suit specific conditions or outputs.


Action Name

Date/Time Formatter


Action Description

1. Format Date

  • Description: This action converts a date field from one format to another within a workflow. For example, you can convert a date from "MM/DD/YYYY" to "YYYY-MM-DD" to standardize dates for consistent reporting or communication.

  • Use Case: Useful when you need to ensure a uniform date format across various systems or reports.

2. Format Date and Time

  • Description: This action converts both date and time fields from one format to another. This action is especially useful for timestamps that include both date and time components.

  • Use Case: Great for workflows that deal with appointments or timestamps, where both date and time need to be reformatted.

3. Compare Dates

  • Description: This action compares two dates and evaluates which date is earlier, later, or whether the dates are equal. This can be used to trigger actions based on whether one date is within a specific time range of another date.

  • Use Case: Ideal for workflows where you want to compare registration dates with event dates or any other form of time-sensitive comparison.


Action Details

Format Date


Action Details

Field NameDescriptionMandatory
Action NameThe unique name you want to assign to this action.Yes
Action TypeChoose the type of formatting action (Format Date, Compare Dates).Yes
FieldSelect the date field you want to format or compare.Yes
From FormatDefine the existing format of the date field.Yes
To FormatDefine the desired format for the date field.Yes


Example Workflow:

  • Trigger: Form Submission

  • Action: Format the date of submission to YYYY-MM-DD format for further usage in reporting.

----------------------------------------------------------------------------------------------------------------------


Format Date and Time



Action Details

FieldDescriptionMandatory
Action NameThe name you assign to this specific action.Yes
Action TypeSelected as “Format Date and Time.”Yes
FieldThe field containing the date and time to be formatted.Yes
From FormatThe current format of the date and time (e.g., DD/MM/YYYY HH:mm).Yes
To FormatThe desired format for both date and time (e.g., MM-DD-YYYY HH).Yes


Example Workflow:

  • Trigger: Appointment Created

  • Action: Format the appointment date and time from Unix timestamp to readable format for notifications.

----------------------------------------------------------------------------------------------------------------------


Compare Dates


Action Details

FieldDescriptionMandatory
Action NameThe name you assign to this specific action.Yes
Action TypeSelected as “Compare Dates.”Yes
Start DateThe first date field you want to compare.Yes
Start Date FormatThe format of the first date (e.g., MM-DD-YYYY).Yes
End DateThe second date field to compare.Yes
End Date FormatThe format of the second date (e.g., DD/MM/YYYY).Yes


Example Workflow:

  • Trigger: Event Registration

  • Action: Compare registration date with the event date to send reminders if the event is within 3 days.



Date and Time Format Supported

Format TypeExample Output
YYYY-MM-DD45281
MM-DD-YYYY45281
MM/DD/YYYY45281
MM/DD/YY45281
DD-MM-YYYY21-12-2023
DD/MM/YYYY21/12/2023
DD/MM/YY21/12/23
DD MMM YYYY45281
D MMMM YYYY45281
MMMM D, YYYY45281
MMM DD, YYYY45281
MMMM Do YYYYDecember 21st, 2023
X (Unix Timestamp)1703176259



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article