2019-01-14 09:54:44 +00:00
|
|
|
`Date` (component)
|
|
|
|
==================
|
|
|
|
|
|
|
|
Use the `Date` component to display accessible dates or times.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Props
|
|
|
|
-----
|
|
|
|
|
|
|
|
### `date`
|
|
|
|
|
|
|
|
- **Required**
|
2019-01-16 16:24:45 +00:00
|
|
|
- Type: One of type: string, object
|
2019-01-14 09:54:44 +00:00
|
|
|
- Default: null
|
|
|
|
|
|
|
|
Date to use in the component.
|
|
|
|
|
|
|
|
### `machineFormat`
|
|
|
|
|
|
|
|
- Type: String
|
|
|
|
- Default: `'Y-m-d H:i:s'`
|
|
|
|
|
|
|
|
Date format used in the `datetime` prop of the `time` element.
|
|
|
|
|
|
|
|
### `screenReaderFormat`
|
|
|
|
|
|
|
|
- Type: String
|
|
|
|
- Default: `'F j, Y'`
|
|
|
|
|
|
|
|
Date format used for screen readers.
|
|
|
|
|
|
|
|
### `visibleFormat`
|
|
|
|
|
|
|
|
- Type: String
|
|
|
|
- Default: `'Y-m-d'`
|
|
|
|
|
|
|
|
Date format displayed in the page.
|
|
|
|
|