Financial Toolbox
  Go to function:
    Search    Help Desk 
eomdate    Examples   See Also

Last date of month.

Syntax

Description

d = eomdate(y, m) returns the serial date number d of the last date of the month for the given year y and month m. Enter y as a four-digit integer; enter m as an integer from 1 to 12.

Either input argument can contain multiple values, but if so, the other input must contain the same number of values or a single value that applies to all. For example, if y is a 1-by-N vector of integers, then m must be a 1-by-N vector of integers or a single integer. d is then a 1-by-N vector of date numbers.

Use the function datestr to convert serial date numbers to formatted date strings.

Examples

See Also

day, eomday, lbusdate, month, year



[ Previous | Help Desk | Next ]