public static java . sql . Timestamp toTimestamp ( int month , int day , int year , int hour , int minute , int second ) { java . util . Date newDate = toDate ( month , day , year , hour , minute , second ) ; if ( newDate != null ) return new java . sql . Timestamp ( newDate . getTime ( ) ) ; else return null ; }
Makes a Timestamp from separate ints for month day year hour minute and second .