Day.js comes packaged with some plugins by default, described below:
utc
By default, dates handled by Day.js are not in UTC.
The utc
plugin is included, so you can call dayjs().utc()
instead of
dayjs()
.
isSameOrBefore
and isSameOrAfter
It also includes the isSameOrBefore and isSameOrAfter for quick date comparison.