Loading plugin in NodeJS
Loading plugin on demand.
var AdvancedFormat = require('dayjs/plugin/advancedFormat')
// import AdvancedFormat from 'dayjs/plugin/advancedFormat' // ES 2015
dayjs.extend(AdvancedFormat) // use plugin
Loading plugin on demand.
var AdvancedFormat = require('dayjs/plugin/advancedFormat')
// import AdvancedFormat from 'dayjs/plugin/advancedFormat' // ES 2015
dayjs.extend(AdvancedFormat) // use plugin