Jump to content
Changes to the Jaspersoft community edition download ×

java.util.Date parameter type


2004 IR Help

Recommended Posts

By: Jeffrey Gilbert - visualjeff

java.util.Date parameter type

2004-02-06 14:08

If I have an input parameter of type java.util.Date and my SQL statement has the following $P{myDate} in it what will this output into my SQL statement? Is the output the same as calling toString() on the Date object (i.e., Fri Feb 06 13:05:21 PST 2004).

 

Jeff

 

 

 

 

 

By: Giulio Toffoli - gt78

RE: java.util.Date parameter type

2004-02-08 13:55

Good question.

 

Try to take a look to the jasperreports code to see exacly what it does. But I think that jasperreports expect a string....

 

Why don't pass two parameters, the first is of type java.util.Date, the second the same date formatted in a string. You can use the first when you nedd a date, the second when you need a string.

 

Giulio

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