+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "dateTimeFormat"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## 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](./data/datetimeoptionswithformat.md)<!-- -->.

<b>Signature</b>

```typescript
dateTimeFormat: DateTimeFormatter<DateTimeOptionsWithFormat>
```
<b>Import</b>

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