Here you can find the source of getDayOfWeek(String year, String month, String day)
public static int getDayOfWeek(String year, String month, String day)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static int getDayOfWeek(String year, String month, String day) { Calendar cal = new GregorianCalendar(new Integer(year).intValue(), new Integer(month).intValue() - 1, new Integer(day).intValue()); return cal.get(Calendar.DAY_OF_WEEK); }/*w w w . j av a 2s . c o m*/ }