Hi how to display given string with July 3, 1969
for string 1969-07-03
String a="1969-07-03";
Expected output: July 3, 1969
I used this method initially to convert it to the right format.
textView.setText(reverseIt(a)); // but this reverse the whole string.
public static String reverseIt(String source) {
int i, len = source.length();
StringBuffer dest = new StringBuffer(len);
for (i = (len - 1); i >= 0; i--)
dest.append(source.charAt(i));
return dest.toString();
}
Please help me solve this.