0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Date and Time → Get Detail Period

AI-generated

Overview

The "Get Detail Period" operation under the "Date and Time" resource in this node calculates a detailed period starting from a specified start date and extending for a given number of days. This is useful when you need to generate or analyze a continuous range of dates, such as creating reports over a specific timeframe, scheduling events, or calculating durations between dates.

For example, if you want to get all dates from January 1, 2023, for 30 days, this operation will provide that detailed period.

Properties

Name Meaning
Start Date The beginning date of the detail period. Example format: "2023-01-01".
Duration (Days) Number of days the detail period should cover, ranging from 0 to 365 days.

Output

The output JSON contains the detailed period data calculated based on the input start date and duration. It typically includes an array or list of dates covering the entire period requested.

If the node supports binary data output, it would represent any associated files or attachments related to the date period calculation, but this operation primarily returns JSON data representing the date range.

Dependencies

  • Requires an API key credential for authentication with the external service at https://prod.0codekit.com.
  • The node sends a POST request to the endpoint /dateandtime/detailperiod with the start date and duration in the request body.
  • No additional environment variables are explicitly required beyond the API key credential.

Troubleshooting

  • Invalid Date Format: If the start date is not in a recognized format (e.g., "YYYY-MM-DD"), the API may return an error. Ensure the date string is correctly formatted.
  • Duration Out of Range: The duration must be between 0 and 365. Values outside this range might cause errors or unexpected results.
  • Authentication Errors: Missing or invalid API key credentials will prevent the node from successfully calling the API.
  • Network Issues: Connectivity problems to the external API endpoint can cause timeouts or failures.

To resolve these issues:

  • Validate input formats before execution.
  • Confirm the API key is correctly configured and active.
  • Check network connectivity and firewall settings.

Links and References

  • 0CodeKit API Documentation (general reference for the API base URL)
  • Standard ISO 8601 date format guidelines for input date formatting.

Discussion