My API application does not allowed this date time format with +0000
behind it
i have tried to format it by codes
import java.text.SimpleDateFormat
def pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
def input = "2019-02-28T02:54:32.123Z"
def date = new SimpleDateFormat(pattern).parse(input)
created(date)
but still getting result
...
"created": "2019-02-28T09:54:32+0000",
...
how do i make the output in this format
...
"created": "2019-02-28T09:54:32.123Z",
...