Actions74
- ai Actions
- array Actions
- audiovideo Actions
- carbone Actions
- charts Actions
- code Actions
- data Actions
- datetime Actions
- events Actions
- files Actions
- geo Actions
- hellospaces Actions
- images Actions
- Get Metadata of an Image
- Scale an Image
- Overlay an Image on another Image
- Scale an Image to Fit Given Dimensions
- Resize an Image
- Mask an Image with Another Image
- Mask an Image with a Circle Mask
- Crops an image by the given x, y, width and height paramters.
- Convert Texts to an Image
- Convert HTML String or URL to an Image
- Generates a QRCode with given text and color.
- Get EXIF from Image
- Remove EXIF from Image
- Modify Image EXIF
- playground Actions
- spreadsheet Actions
- stripe Actions
- youtube Actions
datetime → Convert a Date to a Timezone
AI-generatedOverview
This node allows you to convert a date and time from one timezone to another. It is useful in workflows where you need to standardize or localize datetime values, such as when processing data from users in different regions, scheduling events, or integrating with systems that require specific timezone formats.
Practical examples:
- Converting user-submitted dates (e.g., from a web form) into UTC for storage.
- Adjusting event times to the recipient's local timezone before sending notifications.
- Synchronizing logs or records across systems operating in different timezones.
Properties
| Name | Meaning |
|---|---|
| Datetime | The date to format. Your date needs to be in one of the following formats: DD.MM.YYYY, DD.MM.YY, DD.MM.YYYY HH:mm, DD.MM.YY HH:mm, MM-DD-YYYY, MM-DD-YYYY HH:mm, MM-DD-YY, MM-DD-YY HH:mm. |
| From timezone | The timezone the datetime is currently in. Options include a comprehensive list of IANA timezones (e.g., Europe/Berlin, America/New_York, Asia/Tokyo, etc.). |
| To timezone | The timezone to convert the datetime to. Options are the same as "From timezone" and cover all major global timezones. |
Output
The output will be a JSON object containing the converted date and time in the target timezone. The exact structure may vary depending on the API response, but typically you can expect:
{
"convertedDatetime": "2024-06-01T15:00:00+02:00"
}
convertedDatetime: The input date and time, converted to the specified "To timezone", formatted as an ISO8601 string.
If the operation fails, the output may contain an error message:
{
"error": "Invalid date format"
}
Dependencies
- External Service: Requires access to the 1001fx API.
- API Key: You must configure the
1001fxApicredential in n8n. - No additional environment variables are required beyond the API key setup.
Troubleshooting
Common issues:
- Invalid date format: Ensure your input matches one of the supported formats (see "Datetime" property).
- Timezone not selected: Both "From timezone" and "To timezone" must be set to valid options.
- API authentication errors: Make sure your
1001fxApicredentials are correctly configured in n8n.
Error messages:
"Invalid date format": The provided date does not match any of the accepted formats. Double-check your input."Missing required parameter": One or more required fields ("Datetime", "From timezone", "To timezone") are empty."Unauthorized": Your API key is missing or incorrect. Check your n8n credentials.