cast date without a time
types.castDate(format = "default", value)
| format | available options are "default", "any", and "<pattern>" where 
 | 
|---|---|
| value | date to cast | 
Types and formats specifications, 
strptime, DateTimeClasses,
parsedate-package and 
lubridate-package.
#> [1] "2019-01-01"types.castDate(format = "default", value = "2019-1-1")#> [1] "2019-01-01"types.castDate(format = "any", value = "2019-1-1")#> [1] "2019-01-01"types.castDate(format = "%d/%m/%y", value = "21/11/06")#> [1] "2006-11-21"#> [1] "2019-01-01"