master
dplyr
library(lubridate) ## ## Attaching package: 'lubridate' ## The following object is masked from 'package:base': ## ## date
ymd('2018-06-06') ## [1] "2018-06-06"
dt_str <- '2018-06-06' class(dt_str) ## [1] "character"
dt_dt <- ymd(dt_str) class(dt_dt) ## [1] "Date"
mdy('June 6, 2018') ## [1] "2018-06-06"
dmy('06-06-2018') ## [1] "2018-06-06"
ymd(20190606) ## [1] "2019-06-06"
ymd_hms('2018-06-06 10:33:55', tz = 'EDT') ## [1] "2018-06-06 14:33:55 EDT"