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

## dateMath.isMathString() function

### dateMath.isMathString() function

<b>Signature</b>

```typescript
export declare function isMathString(text: string | DateTime | Date): boolean;
```
<b>Import</b>

```typescript
import { dateMath } from '@grafana/data';
const { isMathString } = dateMath;
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  text | <code>string &#124; DateTime &#124; Date</code> |  |

<b>Returns:</b>

`boolean`

