public final static java.sql.Date decodeDate(byte[] byte_int) { datetime dt = new datetime(byte_int, null); return dt.toDate();
public final static java.sql.Date decodeDate(java.sql.Date d, Calendar cal) { if (cal == null || d == null) { return d; } else { cal.setTime(d); return new java.sql.Date(cal.getTime().getTime()); }
    public final static java.sql.Date decodeDate(byte[] byte_int) {        datetime dt = new datetime(byte_int, null);        return dt.toDate();    }