you can use jquery plugin here called 'jquery.ui.datepicker.js'. download basic jquery and this js and use it as below. suppose your div id is 'selectDate'
jQuery("#selectDate").datepicker({
dateFormat: 'mm/dd/yy',
showOn: "both",
buttonText: "Calendar",
minDate: currentDate,
maxDate: lastDate,
buttonImage:"calendar.png", // add your datepicker image
closeText: 'X',
showButtonPanel: true,
buttonImageOnly: true
});
refer more details on http://jqueryui.com/datepicker/