I'm retrieving a DateTime from MySql DataBase, but it comes on a different format than the countdown allows.
mysql has this date format: 2015-07-07 00:00:00
countdown only admmits: YYYY/MM/DD , MM/DD/YYYY , YYYY/MM/DD hh:mm:ss , MM/DD/YYYY hh:mm:ss
productos.js
$('#clock').countdown("2015/10/10", function(event) {
var totalHours = event.offset.totalDays * 24 + event.offset.hours;
$(this).html(event.strftime(totalHours + ' hr %M min %S sec'));
});
index.php
<div id="clock" name="clock"></div>
<h5 id="fecha"> <?php echo $producto['fecha_creacion'];?> </h5>
How can I solve this problem?