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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…