-2

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!

Hasan A Yousef
  • 19,411
  • 21
  • 113
  • 174

0 Answers0