LastDayOfMonth {quantdates} | R Documentation |
LastDayOfMonth
Description
Returns the last day of a month.
Usage
LastDayOfMonth(year, month, date = NULL)
Arguments
year |
Year as a number. |
month |
Month as a number. |
date |
If provided, uses year and month from this date. It could be date or a string format date YYYY-MM-DD. |
Value
Last day of the month in the current year.
Author(s)
Diego Jara
Examples
# Return last day of the month in year
LastDayOfMonth(year = 2020, month = 2)
# Return last day of the month for the date
LastDayOfMonth(date = '2020-02-03')
[Package quantdates version 2.0.4 Index]