Here you can find the source of getDayOfWeekAbreviated(Date d)
public static String getDayOfWeekAbreviated(Date d)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static String getDayOfWeekAbreviated(Date d) { Calendar cal = Calendar.getInstance(); cal.setTime(d);/*from w ww .j av a 2 s. c o m*/ int ret = cal.get(Calendar.DAY_OF_WEEK); if (ret == Calendar.MONDAY) return "Seg"; if (ret == Calendar.TUESDAY) return "Ter"; if (ret == Calendar.WEDNESDAY) return "Qua"; if (ret == Calendar.THURSDAY) return "Qui"; if (ret == Calendar.FRIDAY) return "Sex"; if (ret == Calendar.SATURDAY) return "Sab"; if (ret == Calendar.SUNDAY) return "Dom"; return ""; } }