```val formatter = SimpleDateFormat("yyyy-MM-dd HH...
# android
d
Copy code
val formatter = SimpleDateFormat("yyyy-MM-dd HH:mm:ssZ", Locale.getDefault())
formatter.timeZone = TimeZone.getTimeZone("UTC")
val result = formatter.parse(dateTv.text)
Would this work?
stackoverflow 2
l
if you use Gson, I would recommend
ISO8601Utils#parse