Here you can find the source of getWeekChineseIndex(Date curDate)
public static int getWeekChineseIndex(Date curDate)
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static int getWeekChineseIndex(Date curDate) { Calendar c = Calendar.getInstance(); c.setTime(curDate);/*from ww w . j a v a 2 s . co m*/ int i = c.get(Calendar.DAY_OF_WEEK); int s = 0; if (i == 1) { s = 7; } else { s = i - 1; } return s; } }