How to Use the Date/Time Formatter Workflow Action in Sparkforge
The Date/Time Formatter workflow action reformats dates, reformats date-times, or returns the difference in days between two dates. Outputs are stored as workflow variables you can reuse in later steps.
The Date/Time Formatter action handles three jobs: reformat a date, reformat a date and time, or calculate the days between two dates. Whatever it produces is stored as a workflow variable you can drop into emails, SMS, CRM updates, or conditional branches.
What it does
- Format Date — convert a date from one format to another (e.g.
2024-12-09toDecember 9, 2024). - Format Date-Time — convert a date-time value (e.g.
2024-12-09 15:48) to a different format. - Compare Dates — calculate the difference in days between two dates.
How to add the action
- Go to Automation > Create Workflow > Start from Scratch, or open an existing workflow.
- Click the + icon and pick Date/Time Formatter from the action list.
- Choose the action type: Format Date, Format Date-Time, or Compare Dates.
Format Date
Convert a date field from one structure to another.
Field selection
Pick the source date. Options include Specific Date, Current Date, contact date fields, custom date fields, appointment start/end dates, custom values, or an inbound webhook trigger. Note: contact custom fields don't currently support date-time values.
From Format
If you pick a system field, Sparkforge auto-detects the format. If you pick a Custom Value or inbound webhook value, select the format manually so it knows what to parse.
To Format
Pick the output format from the list of supported formats.
Format Date-Time
Same flow as Format Date but for values that include both date and time.
Field selection
Choose from Specific Date and Time, Current Date and Time, appointment start/end date-time, custom values, or an inbound webhook trigger.
From Format and To Format
Auto-detected for system fields. Manual selection required for Custom Values and inbound webhooks.
Compare Dates
Returns the difference in days between a start date and an end date.
Start Date and End Date selection
Both dates can come from Specific Date, Current Date, contact date fields, custom date fields, appointment start/end dates, custom values, or an inbound webhook trigger.
Format selection
System fields auto-detect. Custom values and webhook values need a manual format selection on each side.
Using the output downstream
After the action runs, the formatted date or comparison result is available as a workflow variable. Drop it into:
- SMS or email body
- Internal notifications
- If/Else conditions to branch the workflow
- CRM field updates
- Webhook payloads
Frequently Asked Questions
Can I compare a contact's birthday to today's date?
Why does the From Format dropdown show up only sometimes?
Can the formatter handle time zones?
Where does the output go?
Was this article helpful?
Thanks for the feedback.