Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { /** * Gets the current day of week. * * @return current day of week. */ public static String getActualDayOfWeek() { Date date = new Date(); String actualDayOfWeek = new SimpleDateFormat("EE", Locale.US).format(date); return actualDayOfWeek; } }