evan.warrick Posted December 31, 2021 Share Posted December 31, 2021 My DB date format example: 2021-09-01 14:52:00.157I'm using 2 parameters in report both with Parameter Class = java.util.DateParameter1 = Date Range From Parameter2 = Date Range ToHow do I configure iReport to handle my DB date format?My report query:select * from CN_Loginner join Item_Stagingon CN_Log.CN_PK1 = Item_Staging.Item_Numberwhere CN_PK1 = '5VX740'and CN_Change_ID = '595448'and Last_Updated >= $P{Date Range From}and Last_Updated <= $P{Date Range To} Link to comment Share on other sites More sharing options...
luked Posted January 11, 2022 Share Posted January 11, 2022 Have you tried converting your date format in your SQL query?I use the below in Oracle -cast(iuv.time_out as date) betwen to_date($P{START DATE}, 'YYYYMMDD') and to_date($P{END DATE}, 'YYYYMMDD') Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now