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

## stringToMs() function

### stringToMs() function

<b>Signature</b>

```typescript
export declare function stringToMs(str: string): number;
```
<b>Import</b>

```typescript
import { stringToMs } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  str | <code>string</code> |  |

<b>Returns:</b>

`number`

