How to set the first day of the week in a Java application calendar
We use a Java application that has a date selection field when you click there to open a small calendar The first day of the week is Sunday But I hope it's Monday I tried to change it from the date setting from the windows control panel For example, I set the first day of my windows calendar to Thursday But in the calendar of Java applications, the first day of the week is still Sunday Can I change the first day of the Java application from windows, or just from the code of the Java application?
to greet
Solution
Which framework does your Java application use? What type of component is the date selection field?
In the java calendar, by default, the first day of the week is determined by the system's "regional settings"
Therefore, if you cannot change the source code of the application:
>You may want to change the locale of the operating system (windows in your case) > or you can use various command-line parameters for Java when starting the JVM, such as - duser Country or - duser region. Look here