thiago.af19 Posted January 5, 2023 Posted January 5, 2023 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]
mahadiosb Posted January 6, 2023 Posted January 6, 2023 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:
shreekrishna.shankhwar Posted January 12, 2023 Posted January 12, 2023 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
thiago.af19 Posted January 12, 2023 Author Posted January 12, 2023 It was just removing the ' + "/" ' Resolved
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