Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: moment-timezone
node v10.24.1
endpoint
share
tweet
var moment = require("moment-timezone") var timezone = 'America/Asuncion'; moment.tz.setDefault(timezone); var startDate = moment('Mon Oct 01 2018 00:00:00 GMT-0400'); [2, 3, 4, 5, 6].map(day => { return startDate.clone().add(day, 'day').toLocaleString(); });
Created from: https://npm.runkit.com/moment-timezone
Loading…
Clone and edit this document