JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.3/moment.min.js"></script>

JavaScript

var today = moment().diff([2015, 6, 24], 'days');
var tomorrow = moment().diff([2015, 6, 25], 'days');

console.log('Today: ' + today);
console.log('Tomorrow (when outputted as text it returns 0 instead of -0): ' + tomorrow);
console.log(tomorrow);