Android Calendar Get getDay(Calendar c)

Here you can find the source of getDay(Calendar c)

Description

get Day

Declaration

public static int getDay(Calendar c) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    public static int getDay(Calendar c) {
        if (c != null) {
            return c.get(Calendar.DAY_OF_WEEK);
        } else {//from  ww w.ja v a 2s.  c  o m
            return Calendar.getInstance().get(Calendar.DAY_OF_WEEK);
        }
    }
}

Related

  1. getDateAsDirName()
  2. getDateAsF()
  3. getDateAss()
  4. getDateMin()
  5. getDay()
  6. getFirstOfWeek(Calendar cal, int week)
  7. getFragmentInDays(Calendar calendar, int fragment)
  8. getFragmentInHours(Calendar calendar, int fragment)
  9. getGuessedDateString()