Here you can find the source of getDayOfTime(Timestamp timestamp)
public static int getDayOfTime(Timestamp timestamp)
//package com.java2s; import java.sql.Timestamp; import java.util.Calendar; public class Main { public static int getDayOfTime(Timestamp timestamp) { Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(timestamp.getTime()); return calendar.get(Calendar.DAY_OF_MONTH); }//from www.jav a 2 s . c om }