JSON Date format

by rodrigorf

JavaScript

var date = new Date('2015-11-18T21:35:33.000Z');
var data = (date.getMonth() + 1) + '/' + date.getDate() + '/' +  date.getFullYear();

var horas = date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds();
console.log(horas);