This is my code. I am using it in my program to calculate the time difference between this date and the current date so I need to use the new Date()
function but I don't want it to display the GMT on the website. I just want it to display the date of December 23, 2020.
var createdDate = new Date("December 23, 2020");
document.getElementById("dateCreated").innerHTML = "Date created: " +
"<br />" + createdDate
<span id="dateCreated"></span>