Java Week Day getDayOfWeek(String year, String month, String day)

Here you can find the source of getDayOfWeek(String year, String month, String day)

Description

get Day Of Week

License

Apache License

Declaration

public static int getDayOfWeek(String year, String month, String day) 

Method Source Code

//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*/
}

Related

  1. getDayOfWeek(long date)
  2. getDayOfWeek(long date)
  3. GetDayOfWeek(long p)
  4. getDayOfWeek(String dat)
  5. getDayOfWeek(String date)
  6. getDayOfWeekAbbreviation(int day)
  7. getDayOfWeekAbreviated(Date d)
  8. getDayOfWeekShortString(Date date)
  9. getDaysExceptWeekend(String from, String to)