Update tomorrow.md

This commit is contained in:
Filip Danić
2018-10-17 21:50:11 +02:00
parent ab44e065d9
commit bc575fea57

View File

@ -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 = () => {