Good Day Experts!
I am working on one of my node/express/sequelize/mysql projects and not sure how to format some JSON data. The data is returned to my js file and I am displaying it in a modal form. The data is displaying in the modal format but my date(with no time) is coming form the db and not displaying how I want it to.
I am looping through the JSON and here is the line of code I am using to display the date:
$("#modal-data").append("<p><b>Payment Type:</b> " + data[i].paymentType + "</p>");
Here is how it is displaying:
2019-11-24T00:00:00.000Z
I have been unable to find a solution to achieve the date with nothing after it. Can you help point me in the right direction?
Thanks,
jimbo99999
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.