date_parts: Formatting parts of dates

date_partsR Documentation

Formatting parts of dates

Description

Format the month or day of week for a date.

Usage

format_month(d, abbr = TRUE)

format_wday(d, abbr = TRUE)

Arguments

d

A date

abbr

Abbreviate the name.

Value

The name of the month or day of the week.

Functions

  • format_month(): Format the month

  • format_wday(): Format the day of the week

Examples

format_month(as.Date("2001-02-25"), FALSE)
format_month(Sys.Date(), TRUE)

format_wday(as.Date("2001-02-25"), FALSE)
format_wday(Sys.Date(), TRUE)


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