Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana/v8.4/packages_api/data/datetimeoptionswithformat.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana/v8.4/packages_api/data/datetimeoptionswithformat/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
DateTimeOptionsWithFormat interface
The type describing the options that can be passed to the dateTimeFormat helper function to control how the date and time value passed to the function is formatted.
Signature
export interface DateTimeOptionsWithFormat extends DateTimeOptions Import
import { DateTimeOptionsWithFormat } from '@grafana/data';Properties
| Property | Type | Description |
|---|---|---|
| defaultWithMS | boolean | Set this value to true if you want to include milliseconds when formatting date and time |
defaultWithMS property
Set this value to true if you want to include milliseconds when formatting date and time
Signature
defaultWithMS?: boolean;