finally figured out Joda localdate in JasperReports
finally figured out Joda localdate in JasperReports
- Subject: finally figured out Joda localdate in JasperReports
- From: Theodore Petrosky <email@hidden>
- Date: Thu, 16 May 2013 07:06:20 -0700 (PDT)
Finally,
my solution:
materialsClose is a date in my Postgresql backend. it is modeled to a jodaLocalDate.
My problem was passing it to iReport as a Field ($F{materialClose}) and apply a formatter.
solution.
materialsClose property/Field Class is set to java.lang.String
then in the textField Property => Text Field Expression:
new org.joda.time.LocalDate($F{materialsClose}).toDate()
the add a Pattern for the formatter.
seems simple now!!!
Ted
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden