Boolean: Reverse from "yyyy-mm-dd" to "dd-mm-yyyy" format?
Default: rev = FALSE.
as_string
Boolean: Return as character string?
Default: as_string = TRUE.
If as_string = FALSE, a "Date" object is returned.
sep
Character: Separator to use.
Default: sep = "-".
Value
A character string or object of class "Date".
Details
By default, cur_date returns Sys.Date
as a character string (using current system settings and
sep for formatting).
If as_string = FALSE, a "Date" object is returned.
Alternatively, consider using Sys.Date
or Sys.time() to obtain the "
format according to the ISO 8601 standard.
For more options, see the documentations of the
date and Sys.Date functions of base R
and the formatting options for Sys.time().
See Also
what_date() function to print dates with more options;
date() and today() functions of the lubridate package;
date(), Sys.Date(), and Sys.time() functions of base R.