Skip to content

Commit

Permalink
docs: better instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
felixw committed Nov 16, 2023
1 parent 88b6292 commit 252ec26
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ Expected format: date/time `string`, eg `'10:23:00'`
##### Unique options, and their defaults

- `format?: string = 'MM.dd.yyyy'`
the date is parsed via date-fn, see [date-fn docs](https://date-fns.org/v2.30.0/docs/parse) for more info and additional formatting options, eg: `'dd.MM.yyyy'`

to properly sort by date, the date string value is parsed according to this format. For more info and additional formatting options, e.g. `'dd/MM/yyyy'` check the [date-fn docs](https://date-fns.org/v2.30.0/docs/parse).

<Canvas withSource="close">
<Story name="Date Cell">
Expand Down

0 comments on commit 252ec26

Please sign in to comment.