Here you can find the source of Calendar2Timestamp(Calendar c)
public static Timestamp Calendar2Timestamp(Calendar c)
//package com.java2s; import java.sql.Timestamp; import java.util.Calendar; public class Main { public static Timestamp Calendar2Timestamp(Calendar c) { return new Timestamp(c.getTimeInMillis()); }/*from w w w.j a v a 2s . c om*/ }