LastDayOfMonth: LastDayOfMonth

Description Usage Arguments Value Author(s) Examples

Description

Returns the last day of a month.

Usage

1
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

1
2
3
4
5
# 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')

quantdates documentation built on July 1, 2020, 5:26 p.m.