18
You should tie the datepicker to a form input instead of a div, so the value in the input will be submitted back with the form.
<input type="text" id="datepicker"></div>
<script>
$(function () {
$('#datepicker').datepicker();
});
</sript>