Sep
23
|
Use the Timestamp constructor that take the time in millisends as a parameter. you can get the time of the Date in milliseconds using its getTime() method.
Timestamp timestamp = new Timestamp(date.getTime());
Leave a Reply
You must be logged in to post a comment.