| Financial Toolbox | ![]() |
Syntax
Day = eomday(Year, Month)
Description
Day = eomday(Year, Month)
returns the last day of the month for the given year and month. Enter Year as a four-digit integer; enter Month as an integer from 1 to 12.
Year is a 1-by-n vector of integers, then Month must be a 1-by-n vector of integers or a single integer. Day is then a 1-by-n vector of days.
| Note: This function now ships with basic MATLAB. It originally shipped only with the Financial Toolbox. This description remains here for your convenience. |
Examples
Day = eomday(2000, 2) Day=29
| eomdate | ewstats | ![]() |