format_date_range: Format a range of dates

View source: R/text_formatting.R

format_date_rangeR Documentation

Format a range of dates

Description

Format a range of dates.

Usage

format_date_range(dates, abbr = TRUE)

format_day_date_range(dates, abbr_month = TRUE, abbr_wday = TRUE)

Arguments

dates

A named list or vector of dates with elements start and stop.

abbr

Abbreviate the month.

abbr_month

Abbreviate the months.

abbr_wday

Abbreviate the days of the week.

Details

Format a range of dates, using a similar format to format_class_date()

Value

A formatted date

Functions

  • format_day_date_range(): Format a range of dates, including day of the week.

Examples

format_date_range(list(start = as.Date("2020-02-14"),
                       stop  = as.Date("2020-03-15")))

format_day_date_range(list(start = as.Date("2020-02-14"),
                           stop  = as.Date("2020-03-15")))


jonathan-g/semestr documentation built on Jan. 23, 2025, 3:10 p.m.