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
Name | Type | Required | Description |
---|---|---|---|
timePeriodJson | string | Yes | JSON string representing the time period |