Skip to content

Instantly share code, notes, and snippets.

@luandevpro
Last active July 17, 2019 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luandevpro/b82793116c1833f56081d2e38babe76e to your computer and use it in GitHub Desktop.
Save luandevpro/b82793116c1833f56081d2e38babe76e to your computer and use it in GitHub Desktop.
console.log(moment().isoWeekday(1).subtract(7, "days").format("DD/MM/YY"))
console.log(moment().isoWeekday(1).subtract(1, "days").format("DD/MM/YY"));
console.log(moment().isoWeekday(1).format("DD/MM/YY"))
console.log(moment().isoWeekday(7).format("DD/MM/YY"))
console.log(moment().subtract(1, 'months').daysInMonth())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment