JSFiddle - React, Tailwind, and code Playground
JavaScript
var unixtimestamp = (new Date("2015-04-17 10:12:12".replace('-','/'))).getTime() / 1000;
alert(unixtimestamp);
var unixtimestamp = (new Date("2015-04-17 10:12:12".replace('-','/'))).getTime() / 1000;
alert(unixtimestamp);