Get current datetime
This Flow Companion action returns the current date and time in ISO 8601 UTC format. It's useful for timestamping events, or any scenario where you need the exact current time in a standardized format.
Configuration
This action requires no parameters. Simply add it to your workflow, and it will return the current UTC datetime when executed.
Output
The action returns the following field:
- currentDatetime: The current date and time in ISO 8601 UTC format without milliseconds.
Output Format
The datetime is returned in the format: YYYY-MM-DDTHH:MM:SSZ
Example: 2026-01-01T16:00:00Z
Use Cases
Event Timestamping
Record the exact time when an action occurred in your workflow:
- Use "Get current datetime" action
- Store the result in a metafield or custom attribute
- Use for audit trails or order notes
Time-Based Calculations
Calculate deadlines or durations:
- Get the current datetime
- Use it as a reference point for scheduling future actions
- Compare with other datetime values in your workflow
Logging and Debugging
Add timestamps to your workflow logs:
- Get the current datetime at key points in your workflow
- Track workflow execution timing
Notes
- The datetime is always in UTC timezone (indicated by the
Zsuffix) - Milliseconds are not included in the output for cleaner formatting
- The format is compatible with most datetime parsing libraries and APIs