A function that locates all variables with "date" in the name (ignoring case), and converts them to POSIXct. Works on both dates and datetimes.

dateable(df)

Arguments

df

The dataframe, tibble, data.table, etc, with the dates to be dated.