I would like to read a file with fread from data.table that has a column with "YYYY-MM-DD" format dates. By default, fread reads the column as chr. However, I would like to have the column as Date, the same way I would obtain when applying as.Date.
I have tried to use
dt[,starttime.date := as.Date(starttime.date)]
but it takes very long to run (I have approx. 43 million rows).