I am having trouble with the code below. Whenever I attempt to change the date, it switches from 15/5/2012 to 05/15/2012.
<script>
$(document).ready(function(){
$("#date").datepicker({
});
var myDate = new Date();
var month = myDate.getMonth() + 1;
var prettyDate = myDate.getDate() + '/' + month + '/' + myDate.getFullYear();
$("#date").val(prettyDate);
});
</script>