convertTimePeriodToDateRange()

Overview

public struct function convertTimePeriodToDateRange(
      required string timePeriodJson
)

Converts a json representation of a time period into a struct with dateFrom and dateTo keys. If no time period detected, the struct will be empty.

Arguments

NameTypeRequiredDescription
timePeriodJsonstringYesJSON string representing the time period