Made as.Dates optional