I need help converting this string to a date type in Typescript for sorting purposes:
31/10/2017 18:12:02
Using new Date() is not working (it returns Invalid Date), even when trying like this :
let date = moment(item1.sendedOn.toString()).format('DD/MM/YYYY h:mm:ss');
console.log(date.toString());
Any suggestions?