Return year of a date.
For a given date in a serial date number or date string format, returns its year. The optional variable f, specifies the format string used to interpret date strings.
See also: date, datevec, now, day, month.
Package: financial