Utilizar la siguiente función:
<script> function getFormattedDate(vDate) { dateTMP = new Date(vDate); year = dateTMP.getFullYear(); month = (1 + dateTMP.getMonth()).toString(); month = month.length > 1 ? month : '0' + month; day = dateTMP.getDate().toString(); day = day.length > 1 ? day : '0' + day; return day + '/' + month + '/' + year; } $(document).ready(function() { dateDDMMYY = getFormattedDate(vDate); console.log(dateDDMMYYYY); }); </script>
Fuente: https://stackoverflow.com/questions/11591854/format-date-to-mm-dd-yyyy-in-javascript