This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/datadateTimeFormat

dateTimeFormat variable

dateTimeFormat variable

Helper function to format date and time according to the specified options. If no options are supplied, then default values are used. For more details, see DateTimeOptionsWithFormat.


dateTimeFormat: DateTimeFormatter<DateTimeOptionsWithFormat>


import { dateTimeFormat } from '@grafana/data';