abdul_b Posted September 2, 2009 Share Posted September 2, 2009 How to change the parameter pattern for date in title expression in charts?Example :I have given title expression in chart as "STATISTICS FROM "+$P{start_date}+" TO "+$P{end_date} Given input as 09/02/2008 for start_date parameter.Given input as 09/02/2009 for end_date parameter.While executing the report I get the ttile as STATISTICS FROM Tue Sep 02 00:00:00 GMT+5.30 2008 TO Wed Sep 02 00:00:00 GMT+5.30 2009But I want the output as STATISTICS FROM 02/09/2008 TO 02/09/2009For changing the pattern for start_date and end_date parameters what i want to do?? Link to comment Share on other sites More sharing options...
pawel_r Posted September 2, 2009 Share Posted September 2, 2009 I recommend tutorial - great source of information. The thing you are looking for is probably here:http://jasperforge.org/website/jasperreportswebsite/trunk/tutorial.html?group_id=252 <textFieldExpression> $F{FirstName} + " " + $F{LastName} + " was hired on " + (new SimpleDateFormat("MM/dd/yyyy")).format($F{HireDate}) + "." </textFieldExpression> HTH,Paweł Link to comment Share on other sites More sharing options...
abdul_b Posted September 5, 2009 Author Share Posted September 5, 2009 Now its working.......Thanks a lot my dear friend... 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