JSFiddle - React, Tailwind, and code Playground

by sergiu079

JavaScript

time = "12:30:45";
curentDateString =  "2018-12-05 12:30:45"
var currentDate = new Date(curentDateString);
var currentDateLong = currentDate.getTime();
setInterval(()=>{
	currentDateLong += 1000;
	nowDate = new Date(currentDateLong);
  // afisez nowDate formatat
}, 1000);