szadroga Posted October 10, 2014 Share Posted October 10, 2014 I have the following expression that is valid in iReport but when copied into Studio I am getting an error message that the expression is not valid. Studio does not like the Period "." before format in the second half of the expression. any thoughts? both ireport and studio are using java as the language (new SimpleDateFormat("'This report was generated on' EEEE, MMMM d, yyyy 'at' h:mm:ss a.")).format(Calendar.getInstance().getTime()) Link to comment Share on other sites More sharing options...
rajesh.sirsikar Posted October 11, 2014 Share Posted October 11, 2014 Hi,Changed a paranthesis position and it worked for me.Expression is (new SimpleDateFormat("'This report was generated on' EEEE, MMMM d, yyyy 'at' h:mm:ss a.").format(Calendar.getInstance().getTime())) 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