Here you can find the source of getDay(java.util.Date date)
public static int getDay(java.util.Date date)
//package com.java2s; public class Main { public static int getDay(java.util.Date date) { java.util.Calendar c = java.util.Calendar.getInstance(); c.setTime(date);// w ww . j ava 2 s. c o m return c.get(java.util.Calendar.DAY_OF_MONTH); } }