Android Day of Week Get getCurrentDayOfWeek()

Here you can find the source of getCurrentDayOfWeek()

Description

get Current Day Of Week

License

Apache License

Declaration

public static int getCurrentDayOfWeek() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

public class Main {
    public static int getCurrentDayOfWeek() {
        Calendar calendar = Calendar.getInstance();
        int weekday = calendar.get(Calendar.DAY_OF_WEEK);
        return weekday;
    }/*from   ww w  .j  av  a2s.c  o m*/
}

Related

  1. getDayOfWeek(String format, int calendarField)
  2. getFirstDayOfWeek(String format)
  3. getFirstDayOfWeek(String format)
  4. getLastDayOfWeek(String format)
  5. getLastDayOfWeek(String format)
  6. getFirstDayOfWeek(Context context)
  7. getFirstDayOfWeekAsCalendar(Context context)