summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Zhukov <maxim.zhukov.dev@gmail.com>2021-01-15 02:28:05 -0600
committerGitHub <noreply@github.com>2021-01-15 09:28:05 +0100
commitad21ac3115456699ddf2e785e292b6368ec5fc95 (patch)
tree16057a9f78d9c1653ac9bc5dff626076c3540eaf
parent03bf2fc01f0d877c0b39b5de64670af200724b22 (diff)
docs(std/datetime): fix readme example (#9120)
-rw-r--r--std/datetime/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/datetime/README.md b/std/datetime/README.md
index 97f2b7c24..b168cd08b 100644
--- a/std/datetime/README.md
+++ b/std/datetime/README.md
@@ -39,11 +39,11 @@ are supported:
Takes an input `string` and a `formatString` to parse to a `date`.
```ts
-import { parse } from 'https://deno.land/std@0.69.0/datetime/mod.ts'
+import { parse } from 'https://deno.land/std@$STD_VERSION/datetime/mod.ts'
parse("20-01-2019", "dd-MM-yyyy") // output : new Date(2019, 0, 20)
parse("2019-01-20", "yyyy-MM-dd") // output : new Date(2019, 0, 20)
-parse("2019-01-20", "dd.MM.yyyy") // output : new Date(2019, 0, 20)
+parse("20.01.2019", "dd.MM.yyyy") // output : new Date(2019, 0, 20)
parse("01-20-2019 16:34", "MM-dd-yyyy HH:mm") // output : new Date(2019, 0, 20, 16, 34)
parse("01-20-2019 04:34 PM", "MM-dd-yyyy hh:mm a") // output : new Date(2019, 0, 20, 16, 34)
parse("16:34 01-20-2019", "HH:mm MM-dd-yyyy") // output : new Date(2019, 0, 20, 16, 34)