+++
# -----------------------------------------------------------------------
# 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
Signature
```typescript
export declare function isMathString(text: string | DateTime | Date): boolean;
```
Import
```typescript
import { dateMath } from '@grafana/data';
const { isMathString } = dateMath;
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| text | string | DateTime | Date
| |
Returns:
`boolean`