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