$ 0 0 Ashwin, Try this... SELECT '9999-12-31 23:59:59', CAST('9999-12-31 23:59:59' AS TIMESTAMP(0) FORMAT 'YYYY-MM-DDBHH:MI:SS')