correct date and datetime types for ms-sql