Here you can find the source of formatShortNameOfDay(final Date date)
public static final String formatShortNameOfDay(final Date date)
//package com.java2s; //License from project: Open Source License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; public class Main { /**//from ww w .j a v a 2s . co m * @return Short name of day represented by the giving day. The context * user's locale and time zone is considered. */ public static final String formatShortNameOfDay(final Date date) { final DateFormat df = new SimpleDateFormat("EE", Locale.getDefault()); df.setTimeZone(TimeZone.getDefault()); return df.format(date); } }