jquery Datepicker with masked input and current time
24 hr and standard AM/PM examples with masked input and current time
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css">
<div id="dialog" title="datepicker">
<form method="post" action="#">
<input class="datepicker" type="text" size="30" />
<input id="submit" type="submit" value="submit" />
</form>
</div>
JavaScript
$(".datepicker").datepicker({
dateFormat: 'yy-mm-dd '
});
$(".datepicker").datepicker("disable");
$("#dialog").dialog({
width: 400,
modal: true,
open: function(event, ui) {
$(".datepicker").datepicker("enable");
}
});