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

## toUtc variable

### toUtc variable

<b>Signature</b>

```typescript
toUtc: (input?: string | number | DateTime | Date | (string | number)[] | undefined, formatInput?: FormatInput) => DateTime
```
<b>Import</b>

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