Here you can find the source of day(Calendar date)
public static int day(Calendar date)
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { public static int day(Calendar date) { return date.get(Calendar.DAY_OF_MONTH); }// w w w.j a v a 2 s .c o m }