Update tomorrow.md
This commit is contained in:
committed by
GitHub
parent
1fbbf52a4d
commit
46c0906262
@ -10,9 +10,9 @@ Results in a string representation of tomorrow's date.
|
||||
|
||||
```js
|
||||
const tomorrow = () => {
|
||||
let t = new Date();
|
||||
t.setDate(t.getDate() + 1);
|
||||
return t.toISOString().split('T')[0];
|
||||
let d = new Date();
|
||||
d.setDate(d.getDate() + 1);
|
||||
return d.toISOString().split('T')[0];
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user