You can easily start using this library by installing it in you web-app by using one of the following guides.
<script src="moment.js"></script> <script> moment().format(); </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.1/moment.min.js"></script> <script> moment().format(); </script>
npm install moment
Moment should be included inside the
node_modules directory, Then add it to your script
var moment = require('moment'); moment().format();
bower install --save moment
To test if you site or web application is properly using the moment.js script, open console (F12 on the keyboard) and type
moment, the console should print the moment function if it was included.