<!DOCTYPE html>
<html>
<head>
<title>title</title>
<style type="text/css" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" ></style>
<script type="text/javascript" src="http://code.jquery.com/jquery.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.9.1/jquery-ui.min.js"></script>
<script type="text/javascript">
$(function(){
$('#datepicker').datepicker();
});
</script>
</head>
<body>
<h1>Datepicker</h1>
<label>Pick a date<input type="text" id="datepicker"/></label>
</body>
</html>
Then use this code:
html:
js:
$('.date-picker').datepick
});