Jump to content
We've recently updated our Privacy Statement, available here ×

How to transform DB date format for parameter class java.util.date


evan.warrick

Recommended Posts

My DB date format example:     2021-09-01 14:52:00.157

I'm using 2 parameters in report both with Parameter Class = java.util.Date

Parameter1 = Date Range From 

Parameter2 = Date Range To

How do I configure iReport to handle my DB date format?

My report query:

select * from CN_Log
inner join Item_Staging
on CN_Log.CN_PK1 = Item_Staging.Item_Number
where 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

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...