powered by
Converts Date and POSIXct objects to the format given as input.
format_utc(x, format = NULL, usetz = TRUE)
A Date or POSIXct object to be converted.
A character string. The default format is "%Y-%m-%d" for Date and "%Y-%m-%d %H:%M:%S" for POSIXct.
Logical. If TRUE, the time zone abbreviation is appended to the output. Applicable only if an POSIXct object.
A character string representing the formatted date.
format.Date, format.POSIXct
format.Date
format.POSIXct
# NOT RUN { format_utc(Sys.time(), format = "%Y-%m-%d", usetz = FALSE) # }
Run the code above in your browser using DataLab