Sadly, this plugin prevents adding neat jQuery code for hiding.
It would be something like this:
$(document).on("click", ".ui-datepicker a", function() {
$(this).closest(".ui-datepicker").hide();
});
But it prevevents propagation
of click event and invoking other click handlers, so above doesn't work.
The below solution is in a bad style, but it works (http://jsfiddle.net/cL9Fx/1/):
$(document).ready(function () {
$('#datetimepicker').datetimepicker({});
$("#datetimepicker").click(function() {
$(".ui-datepicker a").each(function(index, elem) {
$(elem).attr("onclick", "$(this).closest(\".ui-datepicker\").fadeOut(\"fast\");");
});
});
});