Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #getvalue #data #datetimepicker
ADD COMMENT
Topic
Name
2+1 =