year

Get the ‘year’ value from a date or datetime.

Parameters:

No. Type Comments
1 date, datetime or duration Value to extract year from

Returns:

short(0,23) - A short value representing the year.

Usages:

  • year( d:date) : short
  • year( d:datetime) : short