Answers for "getvalue data from datetimepicker"

0

getvalue data from datetimepicker

var date = $("#datetimepicker1").data("datetimepicker").getDate(),
    formatted = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate() + " " + date.getHours + ":" + date.getMinutes() + ":" + date.getSeconds();
alert(formatted);
Posted by: Guest on May-08-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language