diff options
| author | Chris Knight <cknight1234@gmail.com> | 2020-02-02 21:46:05 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-02 16:46:05 -0500 |
| commit | 77f4df40f3d5a9456118dc0c296ee2a465b6033a (patch) | |
| tree | e1b432db44ebb4887c80e421a717041d6763ab7e /std | |
| parent | 4f8a5c0239cd633ea3fd15a27046da3edee2b2f2 (diff) | |
Fixed month reference in documented output of parseDate and parseDateTime function calls (#3859)
Diffstat (limited to 'std')
| -rw-r--r-- | std/datetime/README.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/std/datetime/README.md b/std/datetime/README.md index 177532239..e3d935bc0 100644 --- a/std/datetime/README.md +++ b/std/datetime/README.md @@ -14,12 +14,12 @@ Simple helper to help parse date strings into `Date`, with additional functions. ```ts import { parseDate, parseDateTime } from 'https://deno.land/std/datetime/mod.ts' -parseDate("03-01-2019", "dd-mm-yyyy") // output : new Date(2019, 1, 3) -parseDate("2019-01-03", "yyyy-mm-dd") // output : new Date(2019, 1, 3) +parseDate("20-01-2019", "dd-mm-yyyy") // output : new Date(2019, 0, 20) +parseDate("2019-01-20", "yyyy-mm-dd") // output : new Date(2019, 0, 20) ... -parseDateTime("01-03-2019 16:34", "mm-dd-yyyy hh:mm") // output : new Date(2019, 1, 3, 16, 34) -parseDateTime("16:34 01-03-2019", "hh:mm mm-dd-yyyy") // output : new Date(2019, 1, 3, 16, 34) +parseDateTime("01-20-2019 16:34", "mm-dd-yyyy hh:mm") // output : new Date(2019, 0, 20, 16, 34) +parseDateTime("16:34 01-20-2019", "hh:mm mm-dd-yyyy") // output : new Date(2019, 0, 20, 16, 34) ... ``` |
