First check the relevant JQuery files references are added in the page.
Next use it as below.Make sure you have passed the Input ControlID is passed to the JQuery Selector.
<input type="text" id="datepicker">
<script>
$(function() {
$( "#datepicker" ).datepicker({
//To Do
});
});
</script>