code: public static DateTime getDateTime(final ResultSet rs, final String columnName) throws SQLException
      {
          final Timestamp ts = rs.getTimestamp(columnName);
  
          return (ts == null) ? null : new DateTime(ts);
      }
docs: Returns a DateTime object representing the date or null if the input is null.