JSFiddle - React, Tailwind, and code Playground
JavaScript
var now = new Date(),
now_ms = now.getTime(),
then = new Date("April 4, 2014 12:00:00"),
then_ms = then.getTime(),
dif = Math.floor((then_ms - now_ms) / 1000);
console.log(dif);