# PlainDate (@salmonui/core/dates)

> The PlainDate interface of @salmonui/core/dates: A frozen ISO calendar date. String(date) and JSON.stringify give YYYY-MM-DD.

Canonical: https://salmonui.dev/docs/reference/core/dates/PlainDate

```ts
import type { PlainDate } from '@salmonui/core/dates';
```

Entry index: https://salmonui.dev/docs/reference/core/dates (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/core/dates.md).

## Reference

Kind: interface

```ts
interface PlainDate extends PlainDateLike {
    toString(): string;
    toJSON(): string;
}
```

A frozen ISO calendar date. `String(date)` and `JSON.stringify` give `YYYY-MM-DD`.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `toString` | `toString(): string;` |  | Returns a string representation of an object. |
| `toJSON` | `toJSON(): string;` |  |  |
| `year` | `year: number;` | inherited |  |
| `month` | `month: number;` | inherited |  |
| `day` | `day: number;` | inherited |  |
