Jump to content
JasperReports Library 7.0 is now available ×

Help please... first report trying to use specifed date range..


cdavis74

Recommended Posts

Hello,

I am new to iReport, and I am writing my first report. I have infomration in the report and it looks great.  What I would like to do is to use a date range in my report. I would like to select product sales between the begining and end of the month. I was trying to create a parameter with no luck.  Can anyone get me going on the right track to fix this.  Thanks.

Carla

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Thanks for the suggestion. I have a parameter that I am trying to make and this is the query I have:

SELECT * FROM `table` table
WHERE $F{db_field}
BETWEEN '2001-01-01' AND '2011-01-31'

I'm not sure what I am doing wrong. I think the problem could be that in the database the fields are not a date types, so in ireports the java.util.date doesn't work, and it seems like it needs to be a java.lang.string.  All to say I don't know if the unix string date idea would work. 

Any suggestions would be great.  Thanks again.

 

Link to comment
Share on other sites

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...