Java Day dayOfWeekAbr(Date date)

Here you can find the source of dayOfWeekAbr(Date date)

Description

returns abbreviated day of week

License

Apache License

Parameter

Parameter Description
date date

Return

abbreviated day of week

Declaration

public static String dayOfWeekAbr(Date date) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;
import java.util.*;

public class Main {
    /**//from   w  ww .  j  av  a2  s . co m
     * returns abbreviated day of week
     *
     * @param date date
     * @return abbreviated day of week
     */
    public static String dayOfWeekAbr(Date date) {
        if (date == null) {
            return "";
        }

        return new SimpleDateFormat("EEE").format(date);
    }
}

Related

  1. dayFillter(String text, String type)
  2. dayFilter(Date date)
  3. dayForAMorPM(String date)
  4. dayFormat(Date date)
  5. dayOfDate(Date s)
  6. daysFrom(Date date, int amount, String format)
  7. daysOfnumbe(Date sDate, int number)
  8. daySub(Date fDate, Date oDate)
  9. daysWeekName(boolean shortName, Locale locale)