+++
# -----------------------------------------------------------------------
# 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
Signature
```typescript
toUtc: (input?: string | number | DateTime | Date | (string | number)[] | undefined, formatInput?: FormatInput) => DateTime
```
Import
```typescript
import { toUtc } from '@grafana/data';
```