Versions Compared

Key

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

Returns the month number from the given date.

Namespace

datetime

Input

date(date)

Output

month number of year (int)

Example

If basedate contains the time 2008-08-18, then the two following functions are equivalent, and return the value 8:

...