Actions108
- AI Actions
- Transcribe
- Detect Brand
- Extract Contact Information
- Mood Detection
- Detect Adult Content
- Enitity Detection
- Language Detection
- Too Long To Read
- Check Content Policy
- Detect Faces
- Generate Python Code
- Picture Text Recognition
- Detect Color
- Generate Image
- PDF OCR
- Translation
- Detect Email Type
- Generate Javascript Code
- Picture Object Recognition
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Overview
The node provides utilities related to date and time, specifically here focusing on the "Month" operation within the "Date & Time" resource. It allows users to extract or manipulate month-related information based on input parameters such as a specific date, year, or month. This can be useful in workflows that require date calculations, formatting, or conversions involving months.
Practical examples include:
- Extracting the month number or name from a given date.
- Formatting month data according to a specified output format.
- Returning timestamps or ISO 8601 formatted dates for a particular month.
Properties
| Name | Meaning |
|---|---|
| Code Variables | Allows adding multiple code variables by specifying their variable name/ID and corresponding value. Useful for dynamic scripting contexts. |
| Date | The calendar date to use for the month calculation or extraction. |
| Year | The year component relevant to the month operation. |
| Output Format | Defines how the resulting month data should be returned (e.g., string, number, etc.). |
| Date Format | Specifies the format of the input date if applicable. |
| Month | The month in the calendar relevant to the operation. |
| Timestamp | Boolean flag indicating whether to return the result as a timestamp. |
| ISO 8601 | Boolean flag indicating whether to return the result in ISO 8601 format. |
Output
The node outputs JSON data representing the result of the month operation. The exact structure depends on the input parameters and requested output format but generally includes:
- The month information derived from the input date/year/month.
- Optionally, a timestamp or ISO 8601 formatted string if those options are enabled.
If binary data were involved (not indicated here), it would typically represent files or images, but this operation focuses on date/time textual or numeric data.
Dependencies
- Requires an API key credential for authentication with the external service providing the date and time utilities.
- The node makes HTTP POST requests to endpoints under the "dateandtime" resource with the "month" operation.
- No additional environment variables or configurations are explicitly required beyond the API key.
Troubleshooting
Common issues:
- Incorrect date or month formats may cause errors or unexpected results.
- Missing or invalid API credentials will prevent successful execution.
- Providing incompatible combinations of properties (e.g., both date and month without proper formatting) might lead to errors.
Error messages:
- Authentication errors indicate missing or invalid API keys; ensure the correct credential is configured.
- Validation errors may occur if required fields like "date" or "year" are missing or malformed; verify input values.
- Network or service errors suggest connectivity issues or downtime; retry or check service status.
Links and References
- n8n Expressions Documentation — for using expressions in property values.
- External API documentation for the date and time service (not provided in source).