private int getDayIndex ( int year , int month , int day ) { Calendar cal = Calendar . getInstance ( ) ; cal . set ( year , month , day ) ; return cal . get ( Calendar . DAY_OF_WEEK ) ; }
Get DAY_OF_WEEK of a day