MATLAB Function Reference    
eomday

End 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


  end eps