jquery Datepicker with masked input and current time
24 hr and standard AM/PM examples with masked input and current time
by Shree Khanal
HTML
<input class="datepicker" type="text" size="30" />
20170222
JavaScript
$(".datepicker").datepicker({
dateFormat: 'yy-mm-dd ',
numberOfMonths: 12
});
$(".datepicker").mask("9999-99-99");
$(".datepicker")
.focusout(function() {
$(".datepicker").mask("9999-99-99");
});