In my code, I'm getting date field as:
"\"2022-04-28T12:32:27.242Z\""
That is having \" at the beginning and \" at the end, I tried removing them using:
strings.TrimSpace(strings.ReplaceAll(timestamp, "\\\"", " "))
But nothing happened, and string remained the same!