Jump to content
Changes to the Jaspersoft community edition download ×

month variable from date field


donbowden

Recommended Posts

I am trying to create a month variable from a date field.  I then want to use the month variable to group by month.  I have created a variable called "month" and assigned the formula:

$F{TRAFFICDATE1}.getMonth()

But this returns an error of "cannot cast from int to string".

Please advise if this approach will work for grouping a report based on what month a paricular date field is associated.  Thanks.

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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