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
node v12.22.12
endpoint
share
tweet
var moment = require("moment") var dayjs = require('dayjs') var customParseFormat = require('dayjs/plugin/customParseFormat') dayjs.extend(customParseFormat) console.log(moment("10/18/2019 08:5_", "MM/DD/YYYY HH:mm").format()) console.log(dayjs("10/18/2019 08:5_", "MM/DD/YYYY HH:mm").format())
Created from: https://npm.runkit.com/moment
Loading…
Clone and edit this document