DateFormat.MONTH_FIELD));
return result.toString();
}
public String getDay(int d) {
GregorianCalendar day = new GregorianCalendar(2000, 1, 1);
while (day.get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY) {
day.add(Calendar.DATE, 1);
}
day.add(Calendar.DATE, d);
SimpleDateFormat dateFormat = new SimpleDateFormat("EEE",
this.currentLocale);
StringBuffer result = new StringBuffer();
result = dateFormat.format(day.getTime(), result, new FieldPosition(
DateFormat.DAY_OF_WEEK_FIELD));
return result.toString();
}