730.saurabh Posted December 17, 2013 Share Posted December 17, 2013 Hi,I have a report that takes date range as input control. But when I enter the date in the input control, its format changes automatically and error message is displayed (screenshot attached).What's going wrong here? Link to comment Share on other sites More sharing options...
sprilukin Posted January 22, 2014 Share Posted January 22, 2014 What version of JasperReports Server do you use?This issue can appear in JRS v4.7but it should not appear in latest versions. (If i remember correctly >= JRS v5.0) Also please check jasperserver_config_<YOUR_LOCALE>.propertiesit should contains consistent date format for bothdate.format, datetime.format, time.format andcalendar.date.format, calendar.datetime.format, calendar.time.format properties Properties with calendar.* prefix are used to configure jQuery datepicker calendar plugin which is used in JRSwhile properties without such prefix are used in java backend to parse/format strings (see javadoc)so for examplevalues date.format and calendar.date.format should provide SAME parse/format results for same dates. P.S. these properties are duplicated because jQuery calendar plugin is a little bit different from java DateFormat pattern Hope this helps. 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