d = eomdate(y, m)
| Parameter | Description |
|---|---|
| inputs | Year and month numbers. Arrays are supported when the sizes are compatible with datenum and eomday. |
| Parameter | Description |
|---|---|
| output | A serial date number for the end of each requested month. |
Return the serial date number of the last day in a month.
eomdate combines eomday with datenum, returning dates rather than day numbers.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
eomdate(2024, 2)
datestr(eomdate(2024, 2))
| Version | Description |
|---|---|
| 2.0.0 | initial version |