我想以这种格式解析此日期 2021-11-03T14:09:31.135Z ( message.created_at)
我的代码是这样的:
val dateFormat = SimpleDateFormat("yyyy-MM-dd hh:mm:ss.SSS")
var convertedDate = Date()
try {
convertedDate = dateFormat.parse(message.created_at)
} catch (e: ParseException) {
e.printStackTrace()
}
Run Code Online (Sandbox Code Playgroud)
解析失败