year - Year of date

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

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS