I'm having trouble converting the string format date = 2021-05-10T13: 30: 09Z to Date in the android kotlin I tried with the code below but at the time of the conversion ParseException is returned
val a = "2021-05-10T13:30:09Z"
    try {
        val sdf = SimpleDateFormat("dd/MM/yyyy hh:mm:ss")
        val date: Date = sdf.parse(a)
    } catch (e: ParseException){
        e.printStackTrace()
    }