Here you can find the source of toCalendar(Timestamp timestamp)
public static Calendar toCalendar(Timestamp timestamp)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; import java.util.Calendar; public class Main { public static Calendar toCalendar(Timestamp timestamp) { Calendar cal = Calendar.getInstance(); cal.setTime(timestamp);/*w ww . j a v a 2 s .c o m*/ return cal; } }