JasperReports - formatting currency and date fields

D

Dave

I am using JasperReports and IReport to create reports for my application.

How do I format a field to display currency values properly.

e.g. I have a money/BigDecimal field, I want the value to display as
"£240.04" instead of "240.0000"

I also have a timestamp/java.util.Date field, I want it to display as
"12/03/07" instead of "12/03/2007 00:00"

Any ideas?
 
D

Dave

Dave said:
I am using JasperReports and IReport to create reports for my application.

How do I format a field to display currency values properly.

e.g. I have a money/BigDecimal field, I want the value to display as
"£240.04" instead of "240.0000"

I also have a timestamp/java.util.Date field, I want it to display as
"12/03/07" instead of "12/03/2007 00:00"

Any ideas?

Got it - use "patterns" in iReport.

Easy!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top