Skip to content

Instantly share code, notes, and snippets.

@nurfarazi
Created June 19, 2018 21:44
Show Gist options
  • Save nurfarazi/d417594f8d9984cdc7cbf35757948ac7 to your computer and use it in GitHub Desktop.
Save nurfarazi/d417594f8d9984cdc7cbf35757948ac7 to your computer and use it in GitHub Desktop.
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