Answers for "jquery get date from datepicker"

0

jquery get date from datepicker

var jsDate = $('#your_datepicker_id').datepicker('getDate');
if (jsDate !== null) { // if any date selected in datepicker
    jsDate instanceof Date; // -> true
    jsDate.getDate();
    jsDate.getMonth();
    jsDate.getFullYear();
}
Posted by: Guest on April-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language