public static java . sql . Timestamp getSqlTimeStamp ( java . util . Date date ) { Calendar cal = Calendar . getInstance ( ) ; cal . setTime ( date ) ; return new java . sql . Timestamp ( cal . getTimeInMillis ( ) ) ; }
Get java . sql . Timestamp from java . util . Date