$(document).ready(function() {
$('#txtDate').datepicker();
$('#txtDate').focus(function() {
$(this).datepicker("show");
setTimeout(function() {
$('#txtDate').datepicker("hide");
$('#txtDate').blur();
}, 2000)
})
});
<br/> <input type='text' id='txtDate' />