You will find the String "07/03/2025" is not recognised as a date when using a JDBC connection :
You will need to pass Logical or the date as an ODBC/JDBC with a format of "yyyy-mm-dd"
-- Passing Date as String : '07/03/2025'
select *
from SQLUser.PA_Adm
where PAADM_AdmDate = '07/03/2025'
-- ERROR
--SQL Error [400] [S1000]: [SQLCODE: <-400>:<Fatal error occurred>]
--[Error: <<ZODAT>%rtpcHelper1+1^%sqlcq.Config.cls43.1>]
--[Location: <ServerLoop>]
--[%msg: <Error: '07/03/1025' is an invalid ODBC/JDBC Date value>]
--Passing Date as String : '2025-01-01' (ODBC/JDBC format)
select *
from SQLUser.PA_Adm
where PAADM_AdmDate = '2025-01-01'
--Executes without error
--Passing Date as Logical : +$H (67278)
select *
from SQLUser.PA_Adm
where PAADM_AdmDate = +$H
--Executes without error- Log in to post comments