Investment Studio > Expressions > Functions > Date & Time > YEAR

integer year(date argument)

Returns the year encoded in the argument.

Automatic type conversion allows the use of a date string as argument instead of an explicit date value.

Example

=year(35961)

and (assuming standard US date format settings)

=year("6/15/1998")

both equal 1998.

See also date, datevalue, day, month, now, timevalue, today.