Fixed DATE sql type handling.
- parsing of strings, integers and dates is symetrical
- Follow typical RDBMS convention on how to cast a DATE to type with more precision.