1Fixed it using this:
2
3public DateTime dateAndTimeToDateTime(java.sql.Date date, java.sql.Time time) {
4 String myDate = date + " " + time;
5 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
6 java.util.Date utilDate = new java.util.Date();
7 try {
8 utilDate = sdf.parse(myDate);
9 } catch (ParseException pe){
10 pe.printStackTrace();
11 }
12 DateTime dateTime = new DateTime(utilDate);
13
14 return dateTime;
15}