Change the date of the actual data.
Override this to change the date.
544573
public void changeRemoteDate(Application application, String strParams, CachedItem productItem, Date dateStart, Date dateEnd)
    {
//+     this.setIcon(BaseApplet.getSharedInstance().loadImageIcon("tour/buttons/Lookup.gif", "Lookup"), CalendarConstants.START_ICON + 1);
//x     this.setIcon(BaseApplet.getSharedInstance().loadImageIcon("tour/buttons/Price.gif", "Price"), CalendarConstants.START_ICON + 2);
        productItem.setStatus(productItem.getStatus() | (1 << 2));
//+     this.setIcon(BaseApplet.getSharedInstance().loadImageIcon("tour/buttons/Inventory.gif", "Inventory"), CalendarConstants.START_ICON + 3);
//+     if (application == null)
//+         application = BaseApplet.getSharedInstance().getApplication();
        
// Step 1 - Send a message to the subscriber that I want to lookup the date, price, and inventory.
//+     CalendarDateChangeMessage message = new CalendarDateChangeMessage(strParams, productItem, dateStart, dateEnd);
        

// Step 2 - Listen for messages that modify this object's information
        // I could potentially get 3 messages back: 1. chg date 2. set price 3. set avail.

//      message.getModel();
//x     application.getTaskScheduler().addTask(message);
//+     this.sendMessage(new CalendarDateChangeMessage(application, strParams, productItem, dateStart, dateEnd));
        
        BaseApplet applet = BaseApplet.getSharedInstance();

        try   {
//+         if (database == null)
            MessageSender sendQueue = null;
            String strSendQueueName = "lookupHotelRate";
            Map<String,Object> properties = new Hashtable<String,Object>();
            properties.put("rateType", "Rack");
            properties.put("roomClass", "Single");

            MessageManager messageManager = applet.getApplication().getMessageManager();
            sendQueue = messageManager.getMessageQueue(strSendQueueName, null).getMessageSender();
if (gbFirstTime)
{
    BaseMessageReceiver handler = (BaseMessageReceiver)messageManager.getMessageQueue("sendHotelRate", null).getMessageReceiver();
    /*?JMessageListener listener =*/ new CalendarMessageListener(handler, m_model);
    
    gbFirstTime = false;
}
            properties.put("correlationID", Integer.toString(this.hashCode()));

            sendQueue.sendMessage(new MapMessage(null, properties)); // See ya!
        } catch (Exception ex)  {
            ex.printStackTrace();
        }
    }
448033
def set_day(self, day: int) -> datetime:
        
        self.value = self.value.replace(day=day)
        return self.value
1077225
def update(self, data):
        
        for key, value in data.items():
            setattr(self, key, value)
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);
		}
	}
265954
def _try_convert_to_date(self, data):
        

        # no conversion on empty
        if not len(data):
            return data, False

        new_data = data
        if new_data.dtype == 'object':
            try:
                new_data = data.astype('int64')
            except:
                pass

        # ignore numbers that are out of range
        if issubclass(new_data.dtype.type, np.number):
            in_range = (isnull(new_data.values) | (new_data > self.min_stamp) |
                        (new_data.values == iNaT))
            if not in_range.all():
                return data, False

        date_units = (self.date_unit,) if self.date_unit else self._STAMP_UNITS
        for date_unit in date_units:
            try:
                new_data = to_datetime(new_data, errors='raise',
                                       unit=date_unit)
            except ValueError:
                continue
            except:
                break
            return new_data, True
        return data, False
1141146
function (date) {
            var evt = {
                date : date,
                cancelDefault : false
            };
            this.evalCallback(this._cfg.onDateSelect, evt);
            if (evt.cancelDefault !== true) {
                var cfg = this._cfg;
                var dateToChange = this._dateToChange;
                var dateToKeep = this._dateToKeep;
                var properties = {};
                var tmp;
                properties[dateToChange] = date;
                properties[dateToKeep] = cfg[dateToKeep];
                if (properties.fromDate > properties.toDate) {
                    tmp = properties.fromDate;
                    properties.fromDate = properties.toDate;
                    properties.toDate = tmp;
                } else {
                    tmp = dateToKeep;
                    dateToKeep = dateToChange;
                    dateToChange = tmp;
                }
                this.setProperty("fromDate", properties.fromDate);
                this.setProperty("toDate", properties.toDate);
                this._dateToChange = dateToChange;
                this._dateToKeep = dateToKeep;
                this._subTplModuleCtrl.setRanges(this._getRanges());
                this.evalCallback(cfg.onchange);
            }
        }
302395
public void updateDatesAndCalendar()
    {
        if ((this.getEditMode() == DBConstants.EDIT_NONE) || (this.getEditMode() == DBConstants.EDIT_ADD))
            return; // Only on initial setup
        boolean bUpdateDates = false;
        int iUpdateDays = (int)this.getField(CalendarControl.UPDATE_DAYS).getValue();
        Calendar calNow = new GregorianCalendar();
        if ((this.getField(CalendarControl.START_ANNIV_DATE).isNull())
            || (this.getField(CalendarControl.END_ANNIV_DATE).isNull()))
                bUpdateDates = true;
        else
        {
            Calendar calCutoff = ((DateTimeField)this.getField(CalendarControl.LAST_UPDATE_DATE)).getCalendar();
            calCutoff.add(Calendar.DAY_OF_YEAR, iUpdateDays);
            if (calNow.after(calCutoff))
                bUpdateDates = true;
        }
        if (bUpdateDates)
        {
            int iBackDays = (int)this.getField(CalendarControl.ANNIV_BACK_DAYS).getValue();
            int iRangeDays = (int)this.getField(CalendarControl.ANNIVERSARY_DAYS).getValue();
            Calendar calStart = (Calendar)calNow.clone();
            calStart.add(Calendar.DAY_OF_YEAR, -iBackDays);
            Calendar calEnd = (Calendar)calStart.clone();
            calEnd.add(Calendar.DAY_OF_YEAR, iRangeDays - iBackDays);
            
            Calendar calOldEnd = ((DateTimeField)this.getField(CalendarControl.END_ANNIV_DATE)).getCalendar();
            if (calOldEnd == null)
                calOldEnd = calNow;
        
            ((DateTimeField)this.getField(CalendarControl.START_ANNIV_DATE)).setCalendar(calStart, true, DBConstants.SCREEN_MOVE);
            ((DateTimeField)this.getField(CalendarControl.END_ANNIV_DATE)).setCalendar(calEnd, true, DBConstants.SCREEN_MOVE);
            ((DateTimeField)this.getField(CalendarControl.LAST_UPDATE_DATE)).setCalendar(calNow, true, DBConstants.SCREEN_MOVE);
            
            this.updateCalendar(calOldEnd, calEnd);  // Update the calendar
            
            try {
                this.writeAndRefresh();
            } catch (DBException ex) {
                ex.printStackTrace();
            }
        }
    }
522777
def set_published_date(self):
        """"""
        try:
            self.published_date = self.soup.find('pubdate').string
        except AttributeError:
            self.published_date = None
186066
def date(self) -> Optional[DateHeader]:
        """"""
        try:
            return cast(DateHeader, self[b'date'][0])
        except (KeyError, IndexError):
            return None
892310
public final void setDate(final Date date) {
        this.date = date;
        if (date instanceof DateTime) {
            if (Value.DATE.equals(getParameter(Parameter.VALUE))) {
                getParameters().replace(Value.DATE_TIME);
            }
            updateTimeZone(((DateTime) date).getTimeZone());
        } else {
            if (date != null) {
                getParameters().replace(Value.DATE);
            }
            /*
            else {
                getParameters().removeAll(Parameter.VALUE);
            }
            */
            // ensure timezone is null for VALUE=DATE or null properties..
            updateTimeZone(null);
        }
    }
941030
def set_timestamp(self, timestamp=str(datetime.datetime.utcfromtimestamp(time.time()))):
        
        self.timestamp = timestamp
940908
public final void setItsDate(final Date pItsDate) {
    if (pItsDate == null) {
      this.itsDate = null;
    } else {
      this.itsDate = new Date(pItsDate.getTime());
    }
  }
159420
private Date convertDate(final Object data) {
		if (data == null) {
			return null;
		} else if (data instanceof Date) {
			return (Date) data;
		} else if (data instanceof Long) {
			return new Date((Long) data);
		} else if (data instanceof Calendar) {
			return ((Calendar) data).getTime();
		} else if (data instanceof String) {
			try {
				SimpleDateFormat sdf = new SimpleDateFormat(INTERNAL_DATE_FORMAT);
				sdf.setLenient(lenient);
				return sdf.parse((String) data);
			} catch (ParseException e) {
				throw new SystemException("Could not convert String data [" + data + "] to a date.");
			}
		}

		throw new SystemException("Cannot convert data type " + data.getClass() + " to a date.");
	}
814575
private void setUpdatedAtFromDefinition(@Nullable Long updatedAt) {
    if (updatedAt != null && updatedAt > definition.getUpdatedAt()) {
      setUpdatedAt(updatedAt);
    }
  }
920987
def date(self):
        
        if self._date:
            return self._date
        return datetime.datetime.now().strftime('%Y-%m-%d')
179023
def update(self):
        """"""
        if self.single_channel:
            self.im.set_data(self.data[self.ind, :, :])
        else:
            self.im.set_data(self.data[self.ind, :, :, :])
        self.ax.set_ylabel('time frame %s' % self.ind)
        self.im.axes.figure.canvas.draw()
10501
public void setDate(Date date) {
        DateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        df.setTimeZone(TimeZone.getTimeZone("GMT"));
        setDate(df.format(date));
    }