Error with dates corrected: casting from numerics to strings.