Problem with data input control - format date is wrong after make report.

Hi,

I have problem with sent data parameter to report.

Parameter is data format: on input control is: 04-03-2012 but on the raport is: 12-01-04 00:03

See the attached picture

Best regards,

Daniel

Attachments: 
danielobs's picture
155
Joined: Mar 24 2010 - 1:52pm
Last seen: 2 years 10 months ago

5 Answers:

Input control will use default Java locale to set date format. Use Pattern property in your report to adjust report view.

oesina's picture
2125
Joined: Jun 20 2011 - 10:27am
Last seen: 9 years 10 months ago

If your report is iReport based report then select the date field and go to the properties of the field, go to pattern and set required date pattern.

ajinkya_c's picture
6221
Joined: Aug 29 2012 - 6:13am
Last seen: 6 years 2 months ago

In iReport all is ok. 

After set pattern the date is wrong when report is generating in Jasperserver. . 

In addition, the data generated by the SQL they are wrong. Out of this period we need.

danielobs's picture
155
Joined: Mar 24 2010 - 1:52pm
Last seen: 2 years 10 months ago

the input control that you create in jasperserver must match with the parameter you have in your report. Please make sure the respective parameter names are matching.

cjasper's picture
195
Joined: Jul 24 2012 - 7:20am
Last seen: 5 years 1 month ago

Parameter names are matching.

The problem is with the format of the date.

But I do not know why.

danielobs's picture
155
Joined: Mar 24 2010 - 1:52pm
Last seen: 2 years 10 months ago
Feedback