I'm trying to get a short month name by passing the month int to a function. But it always returns 'Jan'
Here is the function:
public static String getMonthName_Abbr(int month) {
Calendar cal = Calendar.getInstance();
cal.set(Calendar.MONTH, month);
SimpleDateFormat month_date = new SimpleDateFormat("MMM");
String month_name = month_date.format(month);
return month_name;
}