I'm struggling with converting nvarchar to date times.
I have current query:
SELECT
ACCT_NBR, BANK_CODE, ACCT_CODE, ACCT_CCY, HOLDER_CODE,
ACCT_GRP_CODE, RECEPTION_TIMES
FROM
VIEW_ID_MONITORING
WHERE
STATUS = 'EXPECTING'
AND ACCT_GRP_CODE = 'ID_ACME_SHIPPING_EUROPE'
AND CONVERT(VARCHAR(24), '2017-08-03T11:00:00+02:00', 127) = RECEPTION_START
I want to check if the RECEPTION_START is the same as today, 11'o clock with an offset of 2 hours.
But running this query throws following exception
com.microsoft.sqlserver.jdbc.SQLServerException: Conversion failed when converting date and/or time from character string.
What am I doing wrong?