I have this snippet of code that shows a datepicker with the use of Jquery
$(function () {
$('#orderDate').datepicker({
dateFormat: 'dd-mm-yy'
})
})
$("#orderDate").datepicker().datepicker("setDate", new Date());
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
It shows me the datepicker and I take the value, but I put it in "MM-DD-YY" format as I show in the image and I would like it to be in dd-mm-yy format
Thanks