javascript - i need help about jquery.countdown.js by keith-wood

Quick Reference jquery countdown js
i try to code
<div class="countdown-container" id="sales_timer_display_to'.$product->get_id().'" data-date-to="'.date("Y-m-d H:i:s",$sale_price_dates).'"></div>
anddata-date-to
console log2020-04-26 03:10:00
var datadate_to = $elem.attr("data-date-to");
console.log(datadate_to);
var year_to = datadate_to.split("-")[0];
var month_to = datadate_to.split("-")[1];
var days_to = datadate_to.split("-")[2];
var hour_to = datadate_to.split(":")[3];
var minue_to = datadate_to.split(":")[4];
var second_to = datadate_to.split(":")[5];
var dayz_to = new Date(year_to, month_to - 1, days_to, hour_to, minue_to, second_to);
console.log(dayz_to);
$elem.countdown({
until: dayz_to,
this function don't work, console logdayz_to
showing error, right answer should be like thisSun Apr 26 2020 03:10:00 GMT+0700 (Indochina Time)
pls i need this work
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: call to undefined function mysqli_connect()
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.