So I am trying to have my date entry field use a jQuery date picker. I've added the following script code in my view:
@section Scripts {
@Scripts.Render("~/bundles/jqueryui")
@Styles.Render("~/Content/cssjqryUi")
<script type="text/javascript">
$(document).ready(function () {
$('input[type=datetime]').datepicker({
dateFormat: "dd/M/yy",
changeMonth: true,
changeYear: true,
yearRange: "-60:+0"
});
});
</script>
}
However the formatting of the actual datepicker in action seems wrong - how would I fix this?
Should add, I've amended this now to point to the correct file, but I still get the same issue
The following appears when I 'View Page Source'
<script src="/Scripts/jquery-1.12.4.js"></script>
<script src="/Scripts/bootstrap.js"></script>
<script src="/Scripts/respond.js"></script>
<script src="/Scripts/jquery-ui-1.12.1.js"></script>
<link href="/Scripts/jquery-ui-1.12.1" rel="stylesheet"/>
<script type="text/javascript">
$(document).ready(function () {
$('input[type=datetime]').datepicker({
dateFormat: "dd/M/yy",
changeMonth: true,
changeYear: true,
yearRange: "-60:+0"
});
});
</script>

~/Content/cssjqryUibundle?<link href="/Scripts/jquery-ui-1.12.1"- it would likely end in.cssat a minimum. (I seem to recall that jquery-ui puts its css with the js so may be under/Scriptsrather than/Content.