How do i convert a Date object into a Timestamp object ?
posted 14 years ago
Hi! I got to store the current date and time in a Timestamp variable, i could retrieve the current date and time using Calendar cal = Calendar.getInstance(TimeZone.getDefault()); cal.getTime(); but the method of getTime() returns a date object where as i need a Timestamp object, now how do i convert a date object into a Timestamp object?? Please try and reply on this one! Regards!