My date is 2022-01-19T13:00:56.000Z
I need to be able to replace some characters in this, so I need to convert it to a string.
However it loses its format if I use toString():
console.log(myDate.toString())
// output is Wed Jan 19 2022 21:00:56 GM +0800 (Hong Kong Standard Time)
I want to convert the date 2022-01-19T13:00:56.000Z to "2022-01-19T13:00:56.000Z".
How to accomplish this?