improved date parsing using lubridate