A java blog with a collection of examples and tutorials on Java and related technologies. (Under maintenance with continuous updates)
Be in touch with java jazzle or k2java.blogspot.com.
Pages
▼
Friday, April 15, 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