Jump to content
We've recently updated our Privacy Statement, available here ×

Date Picker Input Control - Start Week on Sunday not Monday


adam_7
Go to solution Solved by asimkin,

Recommended Posts

Hello All,

I hvae some reports that contain input controls for the date (mostly sales reports). Everything works smoothly with the reports, but some of the people have made complaints that the date picker calendar displays Monday as the first day of the week, when they are more familiar with Sunday as the start day of the week.

Anyt thoughts on where I can change this?

 

Thanks

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Hi,

for relative dates, you can change week start day in WEB-INFclassesrelativedate.properties file.

For other cases, week start day is hard-coded in scripts located in bower_componentsjquery-uiuii18n for each locale:

firstDay: 1

If you modify the scripts, you have to re-optimize them or configure JasperReports Server to use non-optimized scripts:

http://community.jaspersoft.com/documentation/jasperreports-server-ultimate-guide/v561/customizing-javascript-files

Hope, this helps

Link to comment
Share on other sites

Asimkin

 

Thanks for your response, I have already tried changing  the relativedate.properites file with no luck.

I found the datepicker file in my optimized scripts folder and changed it manually. SInce that file is already in the optimized folder, is there any need to reoptomize it?

 

Making the changed and restarting the Tomcat server seemed to change it how i wanted.

Link to comment
Share on other sites

  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...