I'm using JQuery Datepicker to output the selected date value to two different divs. I'm not sure how to get the value of the datepicker and apply two different formats.
This is how far I got:
<script>
$(document).ready(function() {
$("#datepicker").datepicker({ dateFormat: 'dd' });
$("#datepicker").change(function() {
$(".date-large").html($("#datepicker").val());
$.datepicker.formatDate('yy/mm/dd', $(".date-small").html($("#datepicker").datepicker('getDate')));
});
});
</script>