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 "Calendar Week" operation of the "Date & Time" resource in this node calculates or retrieves information related to calendar weeks based on various date inputs. It supports input as a date string, Unix timestamp, year, or week number and can return the calendar week data in different output formats.
This node is useful for workflows that need to:
- Determine the calendar week number from a given date or timestamp.
- Convert week numbers and years into specific date ranges or formatted outputs.
- Integrate calendar week calculations into scheduling, reporting, or time-based automation tasks.
Example use cases:
- Automatically tagging records with their calendar week for weekly reports.
- Calculating the start and end dates of a particular week number in a given year.
- Converting timestamps to calendar week format for analytics dashboards.
Properties
| Name | Meaning |
|---|---|
| Code Variables | A collection of code variables where each variable has a name (or ID) defined in a code editor and an associated value. Useful for passing dynamic values to custom code functions within the node. |
| Date | The calendar date (as a string) from which to calculate the calendar week. |
| Unix Timestamp | A Unix timestamp number used to determine the calendar week. |
| Year | The calendar year relevant to the calendar week calculation. |
| Week Number | The week number within the year to get calendar week details from. |
| Output Format | Defines how the calendar week data should be returned/formatted. |
Output
The node outputs JSON data representing the calendar week information based on the input parameters. The exact structure depends on the API response but generally includes details such as the week number, start and end dates of the week, and possibly other metadata related to the calendar week.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for authentication with the external service providing the calendar week calculations.
- The node makes HTTP POST requests to an external API endpoint corresponding to the "dateandtime/calendarweek" path.
- No additional environment variables are explicitly required beyond the API credential.
Troubleshooting
Common issues:
- Providing invalid or improperly formatted date strings or timestamps may cause errors or unexpected results.
- Omitting required fields like year or week number when needed could lead to incomplete responses.
- Network or authentication failures if the API key credential is missing or incorrect.
Error messages:
- Errors from the external API will be propagated; typical messages might include invalid parameter errors or authentication failures.
- To resolve, verify all input parameters conform to expected formats and ensure the API key credential is correctly configured.
Links and References
- n8n Expressions Documentation — for using expressions in property values.
- External API documentation for calendar week calculations (not provided in source, consult your API provider).