resolve sql Date conversion to timestamp