0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Date & Time → Detail Period

AI-generated

Overview

This node operation calculates a detailed period based on a given start date and a specified duration. It is useful for workflows that require date range calculations, such as scheduling, reporting, or time-based data segmentation. For example, it can be used to generate a list of dates or periods starting from a specific date and extending for a certain number of days, weeks, or months.

Use Case Examples

  1. Generating a list of dates for a project timeline starting from a given start date and lasting for a specified duration.
  2. Calculating billing periods or subscription durations based on a start date and duration.

Properties

Name Meaning
Code Variables Allows adding multiple code variables with names and values to be used in the code editor for the selected function.
Start Date The start date from which to calculate the detailed period.
Duration The length of the period to calculate starting from the start date.

Output

JSON

  • detailPeriod - The calculated detailed period based on the start date and duration.

Dependencies

  • An API key credential for the CodeKit API is required to perform the operation.

Troubleshooting

  • Ensure the start date is provided in a valid date string format to avoid errors.
  • Duration must be a positive number; negative or zero values may cause unexpected results.
  • If the API request fails, check the API key credential and network connectivity.

Discussion