eomdate
Return the serial date number of the last day in a month.
📝Syntax
d = eomdate(y, m)
📥Input Arguments
Parameter Description
inputs Year and month numbers. Arrays are supported when the sizes are compatible with datenum and eomday.
📤Output Arguments
Parameter Description
output A serial date number for the end of each requested month.
📄Description

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.

💡Examples
Basic usage.
eomdate(2024, 2)
datestr(eomdate(2024, 2))
🔗See Also
datetimeduration
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub