@param newStopDate
- the stopDate to set
322867
void setStopDate(String newStopDate) throws IllegalArgumentException {
        String sdfPattern = getLocalizedString("CWTRA0001I");
        if (newStopDate.contains(":")) {
            // User passed in a time as well as date
            sdfPattern = getLocalizedString("CWTRA0003I");
        }
        DateFormat df = new SimpleDateFormat(sdfPattern);
        df.setLenient(false);
        try {
            stopDate = df.parse(newStopDate);
        } catch (ParseException e) {
            throw new IllegalArgumentException(getLocalizedString("CWTRA0006E"), e);
        }
        //No need to check format of date , as setLenient() is already doing
        //if(!df.format(stopDate).equals(newStopDate))
        //	throw new IllegalArgumentException(getLocalizedString("CWTRA0006E"));

    }
319635
public final void setDateSeen(final Date pDateSeen) {
    if (pDateSeen == null) {
      this.dateSeen = null;
    } else {
      this.dateSeen = new Date(pDateSeen.getTime());
    }
  }
58235
public void setDate(final Date date) {
		if (date == null) {
			setPartialDate(null, null, null);
		} else {
			Calendar cal = Calendar.getInstance();
			cal.setTime(date);
			Integer year = cal.get(Calendar.YEAR);
			Integer month = cal.get(Calendar.MONTH) + 1;
			Integer day = cal.get(Calendar.DAY_OF_MONTH);
			setPartialDate(day, month, year);
		}
	}
597633
public void setStop(final double STOP) {
        if (null == stop) {
            _stop = STOP;
            fireSectionEvent(UPDATE_EVENT);
        } else {
            stop.set(STOP);
        }
    }
703917
public final void setDateDetailsCallback(Callback<DateDetailsParameter, Boolean> callback) {
        requireNonNull(callback);
        dateDetailsCallbackProperty().set(callback);
    }
183516
def set_until(self, date):
        

        if isinstance(date, datetime.date) and date <= datetime.date.today():
            self.arguments.update({'until': '%s' % date.strftime('%Y-%m-%d')})
        else:
            raise TwitterSearchException(1007)
109877
public void setEndDate(Date dateEnd)
    {
        try   {
            dateEnd = m_productItem.getEndDate(); // Date as it appears on the screen
            Date timeNew = m_productItem.setRemoteEndDate(dateEnd);
            if (!timeNew.equals(dateEnd))
            {
                Date dateStart = m_productItem.getStartDate();
                String[] rgstrMeals = m_productItem.getMealCache(dateStart, dateEnd);

                m_productItem.setCacheData(null, timeNew, null, rgstrMeals);
                // Usually, you would have to update the data, but removing the icon in the next step will do this.
            }
        } catch (Exception ex)  {
            ex.printStackTrace();
        }
        try   {
            Thread.sleep(2000);     // Sleep for 2 seconds
        } catch (InterruptedException e)    {
        }
        m_productItem.setStatus(m_productItem.getStatus() & ~(1 << 1));
    }
1133052
@Override
	public void removeByLtS(Date sentDate) {
		for (CommerceNotificationQueueEntry commerceNotificationQueueEntry : findByLtS(
				sentDate, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceNotificationQueueEntry);
		}
	}
361774
protected void setDate(Date date, boolean firePropertyChange) {
		Date oldDate = this.date;
		this.date = date;

		if (date == null) {
			setText("");
		} else {
			String formattedDate = dateFormatter.format(date);
			try {
				setText(formattedDate);
			} catch (RuntimeException e) {
				e.printStackTrace();
			}
		}
		if (date != null && dateUtil.checkDate(date)) {
			setForeground(Color.BLACK);

		}

		if (firePropertyChange) {
			firePropertyChange("date", oldDate, date);
		}
	}
235914
public final void setDateHire(final Date pDateHire) {
    if (pDateHire == null) {
      this.dateHire = null;
    } else {
      this.dateHire = new Date(pDateHire.getTime());
    }
  }
1250677
private void setDateControl(DateControl control) {
        requireNonNull(control);

        control.addEventFilter(RequestEvent.REQUEST,
                evt -> addEvent(evt, LogEntryType.REQUEST_EVENT));
        control.addEventFilter(LoadEvent.LOAD,
                evt -> addEvent(evt, LogEntryType.LOAD_EVENT));

        // listen to calendars

        for (Calendar calendar : control.getCalendars()) {
            calendar.addEventHandler(calendarListener);
        }

        ListChangeListener<? super Calendar> l = change -> {
            while (change.next()) {
                if (change.wasAdded()) {
                    for (Calendar c : change.getAddedSubList()) {
                        c.addEventHandler(calendarListener);
                    }
                } else if (change.wasRemoved()) {
                    for (Calendar c : change.getRemoved()) {
                        c.removeEventHandler(calendarListener);
                    }
                }
            }
        };

        control.getCalendars().addListener(l);

        Bindings.bindBidirectional(datePicker.valueProperty(),
                control.dateProperty());
        Bindings.bindBidirectional(todayPicker.valueProperty(),
                control.todayProperty());
        Bindings.bindBidirectional(timeField.valueProperty(),
                control.timeProperty());
        timeField.setDisable(false);
    }
927158
public void setStartTime(final Date date) {

        if (!Objects.equals(m_model.getStart(), date)) {
            removeExceptionsOnChange(new Command() {

                public void execute() {

                    m_model.setStart(date);
                    setPatternDefaultValues(date);
                    valueChanged();
                }
            });
        }

    }
646696
void setDayOfMonth(String day) {

        final int i = CmsSerialDateUtil.toIntWithDefault(day, -1);
        if (m_model.getDayOfMonth() != i) {
            removeExceptionsOnChange(new Command() {

                public void execute() {

                    m_model.setDayOfMonth(i);
                    onValueChange();
                }
            });
        }
    }
1150300
@Override
    public void setDateHeader(String name, long date) {

        setHeader(name, CmsDateUtil.getHeaderDate(date));
    }
1100534
public final void setEndDate(Date endDate) {
                if (this.endDate == null || !this.endDate.equals(endDate)) {
                        if (endDate != null && startDate != null && endDate.before(startDate)) {
                                throw new ParameterException("The start date must be before the end date of the filter.");
                        }
                        this.endDate = endDate;
                        setChanged();
                        notifyObservers();
                }
        }
1005369
public void deleteOutdatedFlatPushInformationData() {
        final Date historyDate = DateUtils.calculatePastDate(ConfigurationUtils.tryGetGlobalIntegerProperty(AEROGEAR_METRICS_STORAGE_MAX_DAYS, 30));
        logger.trace("Delete all until {}", historyDate.getTime());
        flatPushMessageInformationDao.deletePushInformationOlderThan(historyDate);
    }
582944
public void setDate(Date date) {
		Date oldDate = calendar.getTime();
		calendar.setTime(date);
		int year = calendar.get(Calendar.YEAR);
		int month = calendar.get(Calendar.MONTH);
		int day = calendar.get(Calendar.DAY_OF_MONTH);

		yearChooser.setYear(year);
		monthChooser.setMonth(month);
		dayChooser.setCalendar(calendar);
		dayChooser.setDay(day);

		firePropertyChange("date", oldDate, date);
	}