powered by
An extension of format.Date with additional formatting strings for quarters. Used by linelist2sts.
format.Date
linelist2sts
formatDate(x, format)
a character vector representing the input date(s) x
x
following the format specification.
format
a "Date" object.
"Date"
a character string, see strftime for possible specifications. Further to these base formats, formatDate implements:
strftime
formatDate
"%Q"
the quarter as a numeric
"%OQ"
the quarter as a roman numeral
"%q"
the day within the quarter
formatDate(Sys.Date(), "%G/%OQ/%q")
Run the code above in your browser using DataLab