Skip to contents

Phrases a date according to the specified format and lang.

Usage

phrase_date(
  x = pal::pkg_config_val("ballot_date"),
  format = "date_long",
  lang = pal::pkg_config_val("lang")
)

Arguments

x

Date(s) or datetime(s) to format. A date, datetime, factor or character vector.

format

Format string(s) defining how to phrase x. Possible values include "date_short", "date_medium", "date_long", "date_full", "time_short", "time_medium", "time_long" and "time_full". See stringi::stri_datetime_format() for details.

lang

Language. One of "de".

Value

A character scalar.

See also

Other text phrasing functions: phrase(), phrase_election_candidate(), phrase_proposal_name_de()

Examples

fokus::phrase_date()
#> [1] "23. September 2018"