I am trying to convert the string to Date like the following:
val inputFormat = SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss", Locale.getDefault())
val s = "Mon, 14 Oct 2019 07:10:28"
val time = inputFormat.parse(s)
Log.d("HttpTools", "time server:$time")
But it show the error
java.text.ParseException: Unparseable date: "Mon, 14 Oct 2019 07:10:28"
Did I missing something ? Thanks in advance.