<How to parse iso8601 date-time in android kotlin ...
# stackoverflow
u
How to parse iso8601 date-time in android kotlin or java Hello Devs, I'm working on barcode scanner app, I get date and time at this pattern "20220610T230000Z" I think its ISO8601 date-time format However, I just want to parse this pattern so I can customize it as I want. I tried this one: val isoDate="20220610T230000Z" // from my barcode scanner val df=SimpleDateFormat("yyyymmdd'T'HHmmss.SSS'Z'") val date= df.parse("20220610T230000Z") but when i run code i get java.text.parseexception unparseable Thanks in advance