Versions Compared

Key

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

Returns the year from the given date.

Namespace

datetime

Input

date(date|string)

Output

day(int)

Example

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

...