Description Usage Arguments Value Examples
Format a Date for Display.
1 2 | pretty_date(date, show_year = TRUE, show_month = TRUE,
show_wday = FALSE)
|
date |
The date to be formatted (either a date object or a string with the format "YYYY-MM-DD"). |
show_year |
Whether or not to display year in output. Default: |
show_month |
Whether or not to display month in output. Default: |
show_wday |
Whether or not to display the day of the week
in output. Default: |
A string that represents the date supplied in date
.
1 2 3 4 5 | prettyDate("9-20-2019")
# September 20th, 2019
prettyDate("9-20-2019", show_wday=T)
# Friday, September 20th, 2019
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.