To get started with Day.js in your Node.js project, simply add the dependency with NPM. npm install dayjs Then include it in your script: var dayjs = require('dayjs') //import dayjs from 'dayjs' // ES 2015 dayjs().format() Check here for more information about loading locale and plugin.