Do not leak SQL date types into user code