Skip to main content

system.kanoa.utilities.getDateRange

This function requires KanoaCore module

Description

Returns predefined date ranges (kanoaCore).

Syntax

getDateRange(paramsDict)
  • Parameters
      paramsDict (Dictionary) - A dictionary containing 'selectedDateRange' and 'clientTZOffset' values.
  • Returns
      startDate (Datetime) - The start date of the selected range.
      endDate (Datetime) - The end date of the selected range.
  • Code Example

    # Example Usage:
    date_range = system.kanoa.utilities.getDateRange({'selectedDateRange': 'Today', 'clientTZOffset': 0})