Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Returns the date of the specified day of the week offset by the specified number of weeks from the source date. The day of the week is specified as the full name, for example, thursday, or a three-letter abbreviation, for example, thu. The offset values can be positive, negative, or zero.

Namespace

datetime

Input

base date(date|string), day of the week(string), week offset(int)

Output

date(date)

Example

If basedate contains the date 2009-08-18 and Thursday is specified with an offset of 1, then the two following functions are equivalent, and return the value 2009–08–20:

...