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