cal.getTime() returns a Date object, so just call getTime() from
the date object to get a long representing the millisecond time.
Then, pass this to the constructor of the Timestamp:
import java.util.Date;
import java.util.Calendar;
import java.sql.Timestamp;
import java.util.TimeZone;
public class DateTest {
public static void main(
String [] s) {
Calendar cal = Calendar.getInstance(TimeZone.getDefault());
Timestamp tstamp = new Timestamp(cal.getTime().getTime());
System.out.println(tstamp.toString() + "\n");
}
}
Good Luck,
Keith