JSFiddle - React, Tailwind, and code Playground
HTML
<pre id='text'></pre>
CSS
pre {
font-size: 1.2em;
}
JavaScript
const myStartDate = '10.08.2016 21:18:37';
const start = new Date(myStartDate);
const text = document.querySelector('#text');
setInterval(() => {
const now = new Date();
const delta = now - start;
text.innerHTML = `
startDate: ${start}
days: ${Math.floor(delta/(24*60*60*1000))}
hours: ${Math.floor(delta/(60*60*1000))}
minutes: ${Math.floor(delta/(60*1000))}
seconds: ${Math.floor(delta/(1000))}`;
}, 1000)