src/main/java/com/zandero/utils/DateTimeUtils.java
public static int getDayInWeek(long time) {

		int dayInWeek = getCalendar(time).get(Calendar.DAY_OF_WEEK) - 1;

		// SUNDAY == 1 - 1 == 0
		if (dayInWeek == 0) {
			dayInWeek = 7; // make sunday the last day of the week
		}

		return dayInWeek;
	}
public static int getDayInWeek(long time) {

		int dayInWeek = getCalendar(time).get(Calendar.DAY_OF_WEEK) - 1;

		// SUNDAY == 1 - 1 == 0
		if (dayInWeek == 0) {
			dayInWeek = 7; // make sunday the last day of the week
		}

		return dayInWeek;
	}
Returns number of day in week, where monday is the first day of the week (1)

@param time to check day in week
@return 1 - monday, 2 - tuesday ... 7 - saturday