> ## Documentation Index
> Fetch the complete documentation index at: https://stratanote.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# FormatCustomDate

[**API Reference**](/api-reference/index) / [**date**](/api-reference/utils/date/index)

***

> **formatCustomDate**(`date`, `formatStr`): `string`

Defined in: [utils/date.ts:44](https://github.com/cannoneer85-svg/stratanote/blob/master/_app/client/src/utils/date.ts#L44)

Formats a Date object using a custom format string.
Supports tokens: YYYY (year), MM (month), DD (day), HH (hour), mm (minute), ss (second).

## Parameters

### date

`Date`

### formatStr

`string`

## Returns

`string`
