Showing posts with label sql date. Show all posts
Showing posts with label sql date. Show all posts

Friday, 15 April 2011

Get java.sql.Timestamp from date or current date

java.util.Date today = new java.util.Date();
System.out.println(new java.sql.Timestamp(today.getTime()));