Created
June 19, 2018 21:44
-
-
Save nurfarazi/d417594f8d9984cdc7cbf35757948ac7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var start = moment(); | |
var end = moment().add(1, 'months');; | |
end.from(start); // "in 5 days" | |
end.from(start, true); | |
console.log(end.from(start, true)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment