Does anyone know how to format this MySQL response to have JUST the date in the format of MM-DD-YYYY? For example, I want the below response to be formatted in 12-02-2020
date: '2020-12-02T08:00:00.000Z'
I tried doing the lines below but didn't seem to work
let formattedDate = new Date(Date.parse(entry.date.replace(/-/g, '/')));