today_ecm | R Documentation |
Return today's date in a professional format
today_ecm(
dash_format = FALSE,
month_abb = TRUE,
weekday = TRUE,
weekday_abb = FALSE
)
dash_format |
Whether the month should be printed as a month/day/year string or in formal language |
month_abb |
Whether the month should be abbreviated or printed in full |
weekday |
Whether the day of week should be included |
weekday_abb |
Whether the day of week (if included) should be abbreviated |
The lubridate package does an excellent job of parsing dates which are in messy formats back to POSIX format. However it is not so good for printing dates in the way the people typically read or think about them. This function prints the current date in a format more amenable to professional reports and presentations. The date can be printed in typical shorthand or in a formal manner. Both the month and weekday can be included or excluded, and if they are included they can be either printed in full or abbreviated.
A professionally formatted character string containing the current system date.
# print full date with weekday name
today_ecm()
# print full date with abbreviated weekday name
today_ecm(weekday = TRUE, weekday_abb = TRUE)
# print date without the weekday
today_ecm(weekday_abb = FALSE)
# print date with shorthand notation
today_ecm(dash_format= TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.