String I get is
["2021-01-13T09:45:48.046Z","2021-01-14T09:45:48.096Z","2021-01-15T09:45:48.099Z"]
Here I want to delete substring from T to Z for converting to this form:
["2021-01-13","2021-01-14","2021-01-15"]
I did like that but it replaces only the first string and deletes others, How can I do this separately for each
notFound=notFound.replace(/\T.*\Z/g, '');
Can I do this with the javascript substring function?