Here you can find the source of dayOfWeekAbr(Date date)
Parameter | Description |
---|---|
date | date |
public static String dayOfWeekAbr(Date date)
//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); } }