I have this error when I try to parse my date
Caused by: java.text.ParseException: Unparseable date
What I want to parse
"2020-09-23T13:45:13.371Z"
Here my code
val formatter = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.getDefault())
val mDate = formatter.parse(dateString)
val date = SimpleDateFormat("EEEE, MMMM d, yyyy", Locale.getDefault())
date.timeZone = TimeZone.getTimeZone("UTC")
return (date.format(mDate))
Can anyone point me in the right direction to parse this date string?
Best regard,