I want to parse the date like this (day: month: year "spaced" hour: minute: second)
I did the test with 2018-12-10T10:33:57-04:00
and it returns me 12/10/2018 10:12:00
that result is wrong, I need10/12/2018 10:33:57
let fecha = '2018-12-10T10:33:57-04:00'
console.log(moment(fecha).format('MM/DD/YYYY HH:MM:SS'));
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.15.1/moment.min.js"></script>
another example with another date, the minute is always 12
let fecha2='2018-12-12T18:09:17-04:00';
console.log(moment(fecha2).format('MM/DD/YYYY HH:MM:SS'));
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.15.1/moment.min.js"></script>
The minute and second format must be in lower case.