Используйте пользовательский интерфейс Jquery, http://jqueryui.com/demos/datepicker/
, чтобы вам больше не нужно было ставить библиотеки.Он имеет почти все необходимые функции, а также хорошую документацию.см., например, ниже
$ (документ) .ready (function () {
// the jquery calendar
$( "#yourId" ).datepicker({
showOn: "both", // show on clicking image as well as text box
yearRange: "2000:2030",
buttonImage: imagePath+"/b-calendar.gif", // custom image
buttonImageOnly: true,
dateFormat: 'dd-M-yy',
showOtherMonths: true,
selectOtherMonths: true
,changeMonth: true
,changeYear: true
//,showAnim:"slideDown"
,buttonText: 'Show Calendar'
//,showButtonPanel : true
,prevText: 'Previous Month'
,nextText: 'Next Month'
,beforeShow: function (textbox, instance) { // work around 4 alignment
instance.dpDiv.css({
marginTop: (-textbox.offsetHeight) + 'px',
marginLeft: textbox.offsetWidth + 30+ 'px'
});
}
});
});