Skip to contents

Parse Flexible Date Format

Usage

parse_flexible_date(date_str, end_of_period = FALSE)

Arguments

date_str

Character. Date string in format YYYY, YYYY-MM, or YYYY-MM-DD.

end_of_period

Logical. If TRUE, return the last day of the period for YYYY or YYYY-MM formats.

Value

A Date object.