Create a new Date. To the last day.
2153
public static java.sql.Date newDate() {
        return new java.sql.Date((System.currentTimeMillis() / DAY_MILLIS) * DAY_MILLIS);
    }
1153307
public static Date plus(Date self, int days) {
        Calendar calendar = (Calendar) Calendar.getInstance().clone();
        calendar.setTime(self);
        calendar.add(Calendar.DAY_OF_YEAR, days);
        return calendar.getTime();
    }
1061111
def date_add(start, days):
    
    sc = SparkContext._active_spark_context
    return Column(sc._jvm.functions.date_add(_to_java_column(start), days))
183698
public static Date addDays(Date date, int numberOfDays) {
    return Date.from(date.toInstant().plus(numberOfDays, ChronoUnit.DAYS));
  }
402067
public static Date addSecond(Date date, int amount) {
        return add(date, Calendar.SECOND, amount);
    }
223926
private function createDefaultShipmentDate() {
		$now = time();
		$weekDay = date('w', $now);

		if($weekDay === 0)
			$now += 86400; // Increase Day by 1 if Sunday

		return date('Y-m-d', $now);
	}
346338
def +(other)
      other = other.to_days if other.respond_to?(:to_days)
      ISO8601::Date.new((@date + other).iso8601)
    end
745235
public static Date getLastDayFromLastMonth(Date d) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(d);        
        cal.add(Calendar.MONTH, -1);
        cal.set(Calendar.DAY_OF_MONTH, cal.getActualMaximum(Calendar.DATE));
        cal.set(Calendar.HOUR_OF_DAY, 23);
        cal.set(Calendar.MINUTE, 59);
        cal.set(Calendar.SECOND, 59);
        cal.set(Calendar.MILLISECOND, 999);
        return cal.getTime();
    }
300314
public Query addDateParameter(java.util.Date date) {
        return addParameter(new Date(date.getTime()));
    }
383134
public static Date addDay(Date date, int amount) {
        return add(date, Calendar.DATE, amount);
    }
890278
public static Date addDay(Date date, int amt) {
		return addDateField(date,Calendar.DATE,amt);
	}
868926
def add_date(self, date, lines):
        
        _lines = lines[:]
        _lines = trim(_lines)

        if self.add_date_to_bottom is None:
            add_date_to_bottom = is_top_down(lines)
        else:
            add_date_to_bottom = self.add_date_to_bottom

        if add_date_to_bottom:
            _lines.append(TextLine(''))
            _lines.append(DateLine(date))
        else:
            _lines.insert(0, TextLine(''))
            _lines.insert(0, DateLine(date))

        return trim(_lines)
1035936
public DateFuncSup add(DateSeperator d) {
                date.setTime(date.getTime() + d.parse());
                return this;
        }
254966
public static DateBetween create(Date begin, Date end, boolean isAbs) {
		return new DateBetween(begin, end, isAbs);
	}
92920
protected void setLastUpdate(Date date) throws IOException {
        SimpleDateFormat sdf = new SimpleDateFormat(VictimsRecord.DATE_FORMAT);
        String stamp = sdf.format(date);
        FileUtils.write(lastUpdate, stamp);
    }
1280000
function dayOffsetToDate(dayOffset) {
		var date = cloneDate(t.visStart);
		addDays(date, dayOffset);
		return date;
	}
258139
def day(self, num):
        """"""
        d = date(self.year, 1, 4)  # The Jan 4th must be in week 1 according to ISO
        return d + timedelta(weeks=self.week-1, days=-d.weekday() + num)