Android Date Format getCurrentDayOfWeek()

Here you can find the source of getCurrentDayOfWeek()

Description

get Current Day Of Week

Declaration

public static final int getCurrentDayOfWeek() 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    public static final int getCurrentDayOfWeek() {
        int day = Calendar.getInstance().get(Calendar.DAY_OF_WEEK) - 1;
        return day == 0 ? (day + 7) : day;
    }/* w  ww.ja  va  2  s . c om*/
}

Related

  1. getBeforeYear()
  2. getCurrentDate()
  3. getCurrentDateString(String dateFormat)
  4. getCurrentDateTime()
  5. getCurrentDay()
  6. getCurrentFormatedDate()
  7. getCurrentMonth()
  8. getCurrentTime()
  9. getCurrentYear()