SetStartAndEndTimes
- Last UpdatedNov 17, 2021
- 1 minute read
The SetStartAndEndTimes method sets the time period based on a start time, end time, and/or duration.
Syntax
[Result=] aaHistClientTimeRangePicker.SetStartAndEndTimes
(DateTime startTime, DateTime endTime, integer duration);
Parameters
startTime
The start time for the query. Only considered if the duration is set to Custom. For other durations, the start time is calculated automatically based on the end time and duration.
endTime
The end time for the query. Only considered if the duration is set to Custom or an option from 17 to 32 (OneMinute to ThreeMonths). Otherwise, the end time is set based on the duration.
duration
The time range duration. If the duration is set to Custom, the specified start and end times are used. For other duration options, the time indicated by the duration is used, and the start and/or end times are updated as necessary. For more information on valid values for the duration, see aaTimeRangeEnumeration Enumeration.
Remarks
The date and time formats are set using the Format property.