# getStringforDate Type documentation

## TypeScript declaration

### [getStringforDate](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L144-L156>)

**Kind:** constant

```
import { getStringforDate } from '@siemens/element-ng/datepicker';
```

returns the date string in format YYYY-MM-DD for given date

```
(date: Date) => string = ...
```

```
getStringforDate(date: Date): string
```

returns the date string in format YYYY-MM-DD for given date

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [date](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L144-L144>) | `Date` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)
