import java.text.DateFormatSymbols;
import java.util.Calendar;
import java.util.Locale;
class Main {
private static String attr;
public static String getDateString(String date) {
String datestr = "";
DateFormatSymbols symbols = new DateFormatSymbols(new Locale("tr"));
String[] monthName = symbols.getMonths();
String[] weekDayName = symbols.getWeekdays();
// 2010-04-07
try {
String[] tmp = date.split("-");
datestr = tmp[2] + " " + monthName[Integer.parseInt(tmp[1]) - 1]
+ " " + tmp[0];
// Create a calendar with year and day of year.
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.YEAR, Integer.parseInt(tmp[0]));
calendar.set(Calendar.MONTH, Integer.parseInt(tmp[1]) - 1);
calendar.set(Calendar.DATE, Integer.parseInt(tmp[2]));
calendar.setFirstDayOfWeek(2);
int weekday = calendar.get(Calendar.DAY_OF_WEEK);
datestr += " " + weekDayName[weekday - 1];
} catch (Exception e) {
e.printStackTrace();
}
return datestr;
}
}