format_date | R Documentation |
Formatting of date
format_date(date_format = "%d%b%Y")
date_format |
( |
a function
converting a date into string
.
The date is extracted at the location of the measure, not at the location of the system.
format_date("%d%b%Y")(as.Date("2021-01-01"))
if ("NZ" %in% OlsonNames()) {
format_date("%d%b%Y")(as.POSIXct("2021-01-01 00:00:01", tz = "NZ"))
}
if ("US/Pacific" %in% OlsonNames()) {
format_date("%d%b%Y")(as.POSIXct("2021-01-01 00:00:01", tz = "US/Pacific"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.