Here you can find the source of getDay(Calendar calendar)
static public int getDay(Calendar calendar)
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { static public int getDay(Calendar calendar) { return calendar.get(Calendar.DAY_OF_MONTH); }// ww w.j a va2s .com }