eth_date(Sys.Date())
eth_date(Sys.time())
x <- 7
eth_date(x)
eth_date(x, origin = Sys.Date())
eth_date(x, origin = eth_today())
eth_date(x, origin = "2017-01-01")
eth_date(x, origin = "01-01-2017", format = "%d-%m-%Y")
s <- c("01/01/2013", "06/13/2011")
eth_date(s, format = "%d/%m/%Y")
Run the code above in your browser using DataLab