From 00d150cd7d415027bb74ece1ffc78777745a810f Mon Sep 17 00:00:00 2001
From: Travis CI
Date: Tue, 26 Dec 2017 17:01:00 +0000
Subject: [PATCH] Travis build: 316
---
README.md | 13 +++++++++++++
docs/index.html | 7 +++++++
2 files changed, 20 insertions(+)
diff --git a/README.md b/README.md
index 5b770f8c1..d35aee336 100644
--- a/README.md
+++ b/README.md
@@ -81,6 +81,7 @@
* [`getDaysDiffBetweenDates`](#getdaysdiffbetweendates)
* [`JSONToDate`](#jsontodate)
* [`toEnglishDate`](#toenglishdate)
+* [`tomorrow`](#tomorrow)
### Function
* [`chainAsync`](#chainasync)
@@ -1152,6 +1153,18 @@ const toEnglishDate = (time) =>
// toEnglishDate('09/21/2010') -> '21/09/2010'
```
+[⬆ back to top](#table-of-contents)
+
+### tomorrow
+
+Results in a string representation of tomorrow's date.
+Use `new Date()` to get today's date, adding `86400000` of seconds to it(24 hours), using `toISOString` to convert Date object to string.
+
+```js
+const tomorrow = () => new Date(new Date() + 86400000).toISOString().split('T')[0];
+// tomorrow() -> 2017-12-26
+```
+
[⬆ back to top](#table-of-contents)
## Function
diff --git a/docs/index.html b/docs/index.html
index aa9f6c31e..70a76a44c 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -142,6 +142,7 @@
getDaysDiffBetweenDates
JSONToDate
toEnglishDate
+tomorrow
Function
chainAsync
@@ -784,6 +785,12 @@ Throws an error if the passed time cannot be converted to a date.
{try{return new Date(time).toISOString().split('T')[0].replace(/-/g, '/')}catch(e){return}};
// toEnglishDate('09/21/2010') -> '21/09/2010'
+
tomorrow
+
Results in a string representation of tomorrow's date.
+Use new Date() to get today's date, adding 86400000 of seconds to it(24 hours), using toISOString to convert Date object to string.
+
const tomorrow = () => new Date(new Date() + 86400000).toISOString().split('T')[0];
+// tomorrow() -> 2017-12-26
+
Function
chainAsync
Chains asynchronous functions.