Skip to content

Instantly share code, notes, and snippets.

@LucaLanziani
Created June 20, 2014 20:53
Show Gist options
  • Save LucaLanziani/1d42c4b00a2152e3b125 to your computer and use it in GitHub Desktop.
Save LucaLanziani/1d42c4b00a2152e3b125 to your computer and use it in GitHub Desktop.
Rememberme
var moment = require('moment');
var tomorrow = "",
nextweek = "",
nextmonth = "";
tomorrow = moment().add('days', 1).format('\\H H D M *')
nextweek = moment().add('weeks', 1).format('\\H H D M *')
nextmonth = moment().add('months', 1).format('\\H H D M *')
console.log(tomorrow)
console.log(nextweek)
console.log(nextmonth)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment