shaunakatdalal Posted April 28, 2016 Share Posted April 28, 2016 I want to know for suppose I have a date '10/FEB/2014' and I want to compare it to '15/02/2014'Both of the dates are in String format and they have diffferent formats I want to know which one is a greater date ? Link to comment Share on other sites More sharing options...
hozawa Posted April 28, 2016 Share Posted April 28, 2016 This is just a very simple Java problem. Suggest that you learn Java before trying to use JasperReports.((new SimpleDateFormat("dd/MM/yyyy")).parse("15/02/2014")).after(((new SimpleDateFormat("dd/MMMM/yyyy",Locale.ENGLISH)).parse("10/FEB/2014"))) Link to comment Share on other sites More sharing options...
shaunakatdalal Posted April 28, 2016 Author Share Posted April 28, 2016 its not working its giving me a compilation error at first .parse Link to comment Share on other sites More sharing options...
hozawa Posted April 29, 2016 Share Posted April 29, 2016 I forgot to mention, Expression Editor in Jaspersoft Studio is buggy and sometimes returns error when there is none.Just save the expression and preview to execute. 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