I have an array of dates which returns:
[Mon Aug 03 2020 00:00:00 GMT+0100 (British Summer Time), Wed Aug 05 2020 00:00:00 GMT+0100 (British Summer Time)]
I need to convert these into a format as such
["2020-02-13T02:39:51.054", "2020-02-13T02:39:51.054"]
Using a function which would be the best way to do this?
I was unable to recreate problem in stack blitz as the dates in stackblitz by default are in my desired format but the project I am working on requires dates in the first format. I only need to change format in one array instance.