| Financial Toolbox | ![]() |
Syntax
Year = year(Date)
Description
Year = year(Date)
returns the year of a serial date number or a date string.
Examples
Year = year(731798.776)or
Year = year('05-Aug-2003')
returns
Year =
2003
See Also
datevec, day, month, yeardays
| xirr | yeardays | ![]() |