When the contact form is filled out, it shows the date sequence as year, month, day. They would like it to be month, day, year. How would I change this code to do that? Any suggestions are appreciated.
<script>
jQuery(function ($) {
var now = new Date();
var day = ("0" + now.getDate()).slice(-2);
var month = ("0" + (now.getMonth() + 1)).slice(-2);
var today = now.getFullYear()+"-"+(month)+"-"+(day);
$('#datePicker').val(today);
$('#datePicker1').val(today);
$("#datePicker").attr("min", today);
$("#datePicker1").attr("min", today);
});
</script>