Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
Date and Time → Get Calendar Week
AI-generatedOverview
The "Get Calendar Week" operation in the Date and Time resource of this node calculates the calendar week number for a given date input. This is useful when you need to determine which week of the year a specific date falls into, according to calendar week conventions.
Common scenarios include:
- Scheduling or planning workflows based on week numbers.
- Generating reports grouped by calendar weeks.
- Aligning data processing with weekly periods.
For example, if you provide the date "2023-01-01", the node will return the calendar week number corresponding to that date.
Properties
| Name | Meaning |
|---|---|
| Date | The date string (e.g., "2023-01-01") to get the calendar week for. |
| Unix Timestamp | A Unix timestamp (number of seconds since epoch) to get the calendar week for. |
| Year | The year as a string (e.g., "2023") to specify the year context for the calendar week. |
| Week Number | The week number (e.g., 25) to specify a particular week within the year. |
Note: These properties are used as inputs to calculate or retrieve the calendar week information.
Output
The output JSON contains the calculated calendar week information based on the provided input. Typically, it includes the week number corresponding to the input date or timestamp.
If the node supports binary data output, it would represent related date/time data in binary form, but for this operation, the output is primarily JSON with calendar week details.
Dependencies
- Requires an API key credential to authenticate requests to the external 0CodeKit service at
https://prod.0codekit.com. - The node sends a POST request to the
/dateandtime/calendarweekendpoint with the input parameters.
Troubleshooting
- Invalid Date Format: If the date string is not in a recognized format, the node may fail to compute the calendar week. Ensure the date follows ISO format (YYYY-MM-DD).
- Missing Inputs: Providing neither a date nor a Unix timestamp might cause errors or empty results. Always supply at least one valid input.
- API Authentication Errors: If the API key credential is missing or invalid, the node will fail to connect to the service. Verify the API key configuration.
- Network Issues: Connectivity problems to the external API endpoint can cause timeouts or failures.
Links and References
- ISO Week Date Wikipedia — Explanation of calendar week numbering.
- Unix Timestamp — Understanding Unix timestamps.
- 0CodeKit API Documentation — For more details on the API endpoints (requires access).