Remove a character from string with regex?

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){
    let chatMessage = obj;
    for (i = 0; i <= 49; i++) {
        let chatMessDate = chatMessage[i].Date;
        let ligneId = document.getElementById('ligneChat'+i);
        ligneId.innerText = "["+chatMessDate+"]";

It gives me a date like these:
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!

You don’t really need regex.
let chatMessDate = chatMessage[i].Date.replace('T', ' ')

Thanks it works, I guess I would need regex if there was more than 1 T right?

Yes, for something more complex you should use regex.