Say for eg: I have
String a= "may 22-may 28 Free"
which comes from response. from service how to change that to like this?
Tue,5.22- thur,5.28
Note: two space been given at last ie after date and then a text as free, so neglecting that and considering only date from response,how to do? any idea?
DateFormatter formatter = new SimpleDateFormat("dd-MM-yyyy:HH:mm:SS");
convertedDate = (Date) formatter.parse(a);
but this i couldn't achieve because i couldn't split and properly display based on the
expected output
as like this Tue,5.22- thur,5.28.
How to achieve this?
Assume the current year is the intended year.