Format a date.
formatDate.Rd
Prints a date into a pretty format.
Usage
formatDate(
d,
m,
y,
date.format = c("MM.DD.YYYY", "MMM.DD.YYYY", "DD.MM.YYYY", "DD.MMM.YYYY", "YYYY.MM.DD",
"YYYY.MMM.DD"),
sep = "/"
)
Details
Given the day, month, and year of a date, returns the date in a specific
format. The order and separating string can be modified using
date.format
and sep
respectively. Take note the order of the
arguments: day, month, and year. Only accepts "MM.DD.YYYY", "MMM.DD.YYYY",
"DD.MM.YYYY", "DD.MMM.YYYY", "YYYY.MM.DD", "YYYY.MMM.DD".
See also
Other date formatting functions:
chr_to_date()
,
cleanDate()
,
getFormat()
,
numericToDate()