java - date displayed as oracle.sql in IReport -
- when displaying date in ireport being displayed
oracle.sql
instead of actual date[ex: 12/4/2012 displayed oracle.sql
]. tried changing date formats, difficult determine going wrong. the code date display
oracle.sql
<![cdata[""+$f{time_registered}]]>
the code below displays jasperreport:<textfield> <reportelement uuid="e20e9b37-a687-400f-9b29-e4a210e2d71f" x="661" y="26" width="55" height="20"/> <textelement/> <textfieldexpression><![cdata[""+$f{time_registered}]]></textfieldexpression> </textfield>
convert date string using simpledateformat
, set object variable
then declare variable in jrxml
<field name="time_registered" class="java.lang.string"/>
then use
<textfieldexpression><![cdata[$f{time_registered}]]></textfieldexpression>
Comments
Post a Comment