Skip to content

Commit

Permalink
Update f_date.R
Browse files Browse the repository at this point in the history
  • Loading branch information
trinker committed Aug 13, 2017
1 parent 53196db commit 0247471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/f_date.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#' set.seed(10)
#' dates <- as.Date(sample(1:10000, 12), origin = '1970-01-01')
#' paste(f_date(range(dates)), collapse = ' to ')
f_date <- function(x, format = '%B %d, %Y', ...){
f_date <- function(x = Sys.Date(), format = '%B %d, %Y', ...){

format(as.Date(x, ...), format = format)

Expand Down

0 comments on commit 0247471

Please sign in to comment.