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 am looking to convert these into the following format:
["2020-02-13T02:39:51.054", "2020-02-13T02:39:51.054"]
Could you recommend a function that would achieve this task efficiently?
Unfortunately, I was unable to replicate this issue in stack blitz as the dates are already in my desired format there. However, the project I am currently working on requires dates in the initial format provided. The conversion is needed for only one instance in the array.