SourCherry Help Centre
HomeWorkflowsWorkflow Actions

Workflow Action - Dare/Time Formatter

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

2. Format Date and Time

3. Compare Dates


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:

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


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:

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


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:



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