Versions Compared

Key

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

Returns the date of the specified day of the week soonest after the source date. The day of the week is specified as the full name, for example, thursday, or a three-letter abbreviation, for example, mon.

Namespace

datetime

Input

source date(date|string), day of the week(int|string)

Output

date(date)

Example

If sourcedate contains the time 2008-08-18 and the day of the week that is specified is Thursday contained in dayofweek, then the two following functions are equivalent, and return the value 8:

...