Convert the string of date and time into date string in Kotlin


#1

I want to convert the DateTime string like “2018-04-13T20:00:00.0400” into “April 13, 2018”. I have used the code val sdf = SimpleDateFormat("yyyy/mm/dd", Locale.getDefault()) val startDate = sdf.parse(data.start_time) but it didn’t do as i want !