API Reference@grafana/data › dateTimeFormat

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.

Signature

dateTimeFormat: DateTimeFormatter<DateTimeOptionsWithFormat>

Import

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