From bc575fea573e0a325252842edea27845f133345e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Danic=CC=81?= Date: Wed, 17 Oct 2018 21:50:11 +0200 Subject: [PATCH] Update tomorrow.md --- snippets/tomorrow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/tomorrow.md b/snippets/tomorrow.md index 8288d2f08..1027c84ef 100644 --- a/snippets/tomorrow.md +++ b/snippets/tomorrow.md @@ -2,7 +2,7 @@ Results in a string representation of tomorrow's date. -First we use `new Date()` to get today's date, then add one day using `Date.getDate()` and mutate the initial `Date` via `Date.setDate()`. The we use `.toISOString` to get the date part of the string – discarding the time part. +First we use `new Date()` to get today's date, then add one day using `Date.getDate()` and mutate the initial `Date` via `Date.setDate()`. Then we use construct the date string in `yyyy-mm-dd` format. ```js const tomorrow = () => {