/** * Change the date and time of day. * @param date The date to set (only date portion is used). * @param bDisplayOption Display changed fields if true. * @param iMoveMode The move mode. * @return The error code (or NORMAL_RETURN). */ public int setDateTime(java.util.Date date, boolean bDisplayOption, int iMoveMode) { if (date == null) return this.setData(date, bDisplayOption, iMoveMode); m_calendar.setTime(date); m_calendar.set(Calendar.HOUR_OF_DAY, DBConstants.HOUR_DATE_ONLY); m_calendar.set(Calendar.MINUTE, 0); m_calendar.set(Calendar.SECOND, 0); m_calendar.set(Calendar.MILLISECOND, 0); date = m_calendar.getTime(); return this.setValue(date.getTime(), bDisplayOption, iMoveMode); } /**
/** * Change the date and time of day. * @param date The date to set (only date portion is used). * @param bDisplayOption Display changed fields if true. * @param iMoveMode The move mode. * @return The error code (or NORMAL_RETURN). */ public int setDateTime(java.util.Date date, boolean bDisplayOption, int iMoveMode) { if (date == null) return this.setData(date, bDisplayOption, iMoveMode); m_calendar.setTime(date); m_calendar.set(Calendar.HOUR_OF_DAY, DBConstants.HOUR_DATE_ONLY); m_calendar.set(Calendar.MINUTE, 0); m_calendar.set(Calendar.SECOND, 0); m_calendar.set(Calendar.MILLISECOND, 0); date = m_calendar.getTime(); return this.setValue(date.getTime(), bDisplayOption, iMoveMode); } /**
/** * Change the date and time of day. * @param date The date to set (only date portion is used). * @param bDisplayOption Display changed fields if true. * @param iMoveMode The move mode. * @return The error code (or NORMAL_RETURN). */ public int setDateTime(java.util.Date date, boolean bDisplayOption, int iMoveMode) { if (date == null) return this.setData(date, bDisplayOption, iMoveMode); m_calendar.setTime(date); m_calendar.set(Calendar.HOUR_OF_DAY, DBConstants.HOUR_DATE_ONLY); m_calendar.set(Calendar.MINUTE, 0); m_calendar.set(Calendar.SECOND, 0); m_calendar.set(Calendar.MILLISECOND, 0); date = m_calendar.getTime(); return this.setValue(date.getTime(), bDisplayOption, iMoveMode); } /**