Jump to content
Changes to the Jaspersoft community edition download ×

Date calculation


2005 IR Help

Recommended Posts

By: gavich - gavich

Date calculation

2004-06-03 02:58

Hi,

 

I display two dates in my report and I would like to display the duration between the two.

How could i do that?

 

I tried to compute it in my sql querry but ireport throw an error.... in my querry i have (end_date-begin_date) but the field name cause a sax exception (not a token).

 

please help

 

thx

 

 

 

 

By: Lucian Comanescu - lucicom

RE: Date calculation

2004-06-03 03:56

Hi!

 

You can use: $F{end_date}.getTime() - $F{begin_date.getTime()} ... you'll obtain a "long" with the miliseconds diference between the 2 dates.

 

Lucian.

Link to comment
Share on other sites

  • Replies 0
  • 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...