Countdown to Car Trek

var clock;

$(document).ready(function() {
// Set dates.
var futureDate = new Date(“September 12, 2019 06:00 PM GMT”);
var currentDate = new Date();

// Calculate the difference in seconds between the future and current date
var diff = futureDate.getTime() / 1000 – currentDate.getTime() / 1000;

if(diff < 0) {
diff = 0;
}

// Instantiate a coutdown FlipClock
clock = $('.clock').FlipClock(diff, {
clockFace: 'DailyCounter',
showSeconds: false,
countdown: true
});
});

via Blogger http://bit.ly/2E3A6H7