You have multiple ways of getting Day.js:
- Via NPM:
npm install dayjs-ext --save
import dayjs from 'dayjs-ext'
// Or CommonJS
// var dayjs = require('dayjs-ext');
dayjs().format();
- Via CDN:
<!-- Latest compiled and minified JavaScript -->
<script src="https://unpkg.com/dayjs-ext"></script>
<script>
dayjs().format();
</script>
- Via download and self-hosting:
Just download the latest version of Day.js at https://unpkg.com/dayjs-ext/