In my Java code (Android Studio) I have an ArrayList() dynamically created (the size of the ArrayList is not fixed). Something like:
[Name, January 2, 2020, 9:00 a.m. – 11:00 p.m., Name, Name, February 3, 2020, 9:00 a.m. – 11:00 p.m., name, Name, August 4, 2020, 9:00 a.m. – 11:00 p.m., Name, Name]
now, is it possible to search only for dates (so recognize which are dates) and then substitute in another format?
I would like, for example, Jan 2, 2020 -> 01/02/20.
My idea is scroll the ArrayList, filter the items with a switch case and then do "something" in the specific date data, but still no idea how and maybe switch case cannot search for partial matches, I'm afraid. Like,
switch (arraytest) {
case "January":
case "February":
case "March":
case "April":
case "May":
case "June":
case "July":
case "August":
case "September":
case "October":
case "November":
case "December":
arraytest = arraytest.something...
break;
}
Thanks for the help