MATLAB Function Reference Previous page   Next Page
eomday

Return last day of month

Syntax

Description

E = eomday(Y, M) returns the last day of the year and month given by corresponding elements of arrays Y and M.

Examples

Because 1996 is a leap year, the statement eomday(1996,2) returns 29.

To show all the leap years in this century, try:

See Also

datenum, datevec, weekday


Previous page  end eps Next page

© 1994-2005 The MathWorks, Inc.