I am having a string like below and i want to cut out the T with the time from it like below:
var string = '2021-05-10T08:00,2021-05-11T08:00,2021-05-12T08:00';
My new string should look like this:
var new_string = '2021-05-10,2021-05-11,2021-05-12';
How can i do that?
I tried with .replace
function but the problem is that the time is not always 08:00