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()));

No comments:

Post a Comment