Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; public class Main { public static String getDateWeek(long time) { SimpleDateFormat sdf = new SimpleDateFormat("E"); String dt = sdf.format(time); return dt; } }