format_date | R Documentation |
Date and Time formatting for text output
format_date(x, format = "%m/%d/%Y", tz = "UTC")
format_time(x, format = "%H:%M:%S", tz = "UTC")
x |
POSIXct values |
format |
A format string. see |
tz |
A time zone string, defaults to UTC (Univeral) |
These functions simply provide a shorthand for the most common formats.
The date or time formatted as text
format_date(Sys.time())
format_date(Sys.time(), format="%Y-%m-%d T %H:%M")
format_time(Sys.time())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.