Learn R Programming

dateutils (version 0.1.5)

month_days: Number of days in a given month

Description

Get the number of days in a month given the year and month

Usage

month_days(year, month)

Arguments

year

integer year value

month

integer month value

Value

The number of days in the month (integer)

Examples

Run this code
# NOT RUN {
month_days(2021,9) ## 30

month_days(2020,2) ## 29
# }

Run the code above in your browser using DataLab