Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 515 Bytes

Installation.md

File metadata and controls

30 lines (22 loc) · 515 Bytes

Installation Guide

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/