Added date type and error spans to lower case