Hello, I am receiving dateTime in this format :
2016-01-21T11:03:56
I want to convert this into a more readable format like :
January-02-2021 or similar
I tried these guides but unable to do so https://androidwave.com/format-datetime-in-android/ and https://www.javatpoint.com/java-date-to-string
Also, tried this code, but no luck :
Date date = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
String strDate = formatter.format(date);
System.out.println("Date Format with MM/dd/yyyy : "+strDate);
Pls Guide