thiago.af19 Posted January 5 Share Posted January 5 I have a problem with the report.The extra character ''/'' is coming out in the report. The correct thing is to generate the result: ''07/2022'' and not ''07/2022/''How do I resolve this in iReport?Print When Expression: ($F != null) && (!$F.equals( "" ))[/code]Text Field Expression: $F + "/"[/code] Link to comment Share on other sites More sharing options...
mahadiosb Posted January 6 Share Posted January 6 If your field class type date or timestamp you can change the pattern.Write "MM/YYYY" in the pattern box. The example is shown below: Link to comment Share on other sites More sharing options...
shreekrishna.shankhwar Posted January 12 Share Posted January 12 Id Field is in Date format then you can change for that field Pattern as above for as far as for solution MM-yyyyif its in string use query to convert string TO date format as use above pattern or any pattern as per your need.If you need much clean Answer then share Query and Format of Field which you are trying to display. In this Question we are not clear about data value and its Data type Link to comment Share on other sites More sharing options...
thiago.af19 Posted January 12 Author Share Posted January 12 It was just removing the ' + "/" ' Resolved Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now