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