Tell me how to reformat the publication date received from the server in ISO format
window.onload = function() { const articles = [ "date": '2016-08-02T15:44:09-05:00', ] console.log("Date = " + (new Date(article.date)).toDateString()); } I need the format of 2016-08-02 for its further installation in the tag 2016-08-02