JSFiddle - React, Tailwind, and code Playground
by kougiland
HTML
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/moment.js/1.7.2/moment.min.js"></script>
</head>
<body>
</body>
</html>
JavaScript
$("body").append($("<p>").text(moment.utc().toString()));
$("body").append($("<p>").text(moment.utc().format("ddd MMM D YYYY HH:mm:ss [GMT]ZZ")));
// Find the duration between two dates
var startTime = moment('8:32','HH:mm');
var endTime = moment('12:52','HH:mm');
alert('ihr Termin dauert ' + moment.duration(endTime - startTime).humanize()) // 4 hours b