Hi,
My problem is that I want to remove one character from multiple strings. My problem is I don’t know how I can apply it to my strings. Here’s how they are inserted in my HTML.
function writeChatMessage(obj){
console.log(obj);
let chatMessage = obj;
for (i = 0; i <= 49; i++) {
let chatMessDate = chatMessage[i].Date;
let ligneId = document.getElementById('ligneChat'+i);
ligneId.innerText = "["+chatMessDate+"]";
console.log(chatMessDate);
It gives me a date like these:
[2019-11-08T18:37:41]
[2019-11-08T21:56:44]
[2019-11-09T11:12:26]
What I want to remove is the letter T between the date and the time.
I believe that I should either remove it after all of them are included in my HTML or before I add them, but I don’t know how to proceed.
Thanks you!