If you want to display the chosen date/time instead of the job's date/time range (in a classic dashboard) even if you selected "last 15 minutes" instead of an exact date/time, you can do this as follows: Add a change event to your time input which sets a token named timeRange. You can calculate the actual start and end date/time as follows, then format it as you need: <fieldset submitButton="false" autoRun="false">
<input type="time" token="timeRange" searchWhenChanged="true">
<label>Date Time Range</label>
<default>
<earliest>-1h@h</earliest>
<latest>@h</latest>
</default>
<change>
<eval token="timeRangeEarliest">if(isnum($timeRange.earliest$), $timeRange.earliest$, relative_time(now(), $timeRange.earliest$))</eval>
<eval token="timeRangeLatest">if(isnum($timeRange.latest$), $timeRange.latest$, relative_time(now(), $timeRange.latest$))</eval>
<eval token="prettyPrinttimeRangeFromTime">strftime($timeRangeEarliest$, "%a, %e %b %Y %T.%3N")</eval>
<eval token="prettyPrinttimeRangeToTime">strftime($timeRangeLatest$, "%a, %e %b %Y %T.%3N")</eval>
</change>
</input>
</fieldset> The time input has a default earliest of -1h@h and latest of @h (an hour ago until now to the hour). On change, the timeRangeEarliest and timeRangeLatest tokens are set as either “the chosen exact date/time” or “calculated relative to the chosen range”. The timeRangeEarliest and timeRangeLatest tokens are then formatted as a string using strftime. See date and time formatting here. You can now display the date/time in an html block e.g. <row>
<panel>
<html>
<h3>Date/Time Range</h3>
<table>
<tr>
<td>From:</td>
<td>$prettyPrinttimeRangeFromTime$</td>
</tr>
<tr>
<td>To:</td>
<td>$prettyPrinttimeRangeToTime$</td>
</tr>
</table>
</html>
</panel>
</row>
... View more