I use the datepicker referenced by .toDatepicker()
Is it possible to set monday as first day of week in the date picker?
Thanks for all help!
Datepicker - first day of week
Re: Datepicker - first day of week
The function is using the default datetimepicker shipped with AppGini. All localization settings you can do with AppGini itself should be reflected.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
Re: Datepicker - first day of week
Ok. Thanks for your quick reply.
Re: Datepicker - first day of week
Just another idea: Open language.php and search for...
The value should match with your two-character country-code.
In my (German) projects it is configured as 'de' ...
... which automatically results in a German calendar with weeks starting on Monday:
If you don't have your country-dependent language.php file, follow the instructions here: https://bigprof.com/appgini/download-language-files.
I guess not all languages have been translated 100% percent. If that line does not exists in your specific language file, just append the line and save it into files subdirectory of your AppGini-Programfiles directory.
For example, mine is:
C:\Program Files (x86)\AppGini_5.94\files\language.php
Code: Select all
$Translation['datetimepicker locale']
In my (German) projects it is configured as 'de' ...
Code: Select all
$Translation['datetimepicker locale'] = 'de';
If you don't have your country-dependent language.php file, follow the instructions here: https://bigprof.com/appgini/download-language-files.
I guess not all languages have been translated 100% percent. If that line does not exists in your specific language file, just append the line and save it into files subdirectory of your AppGini-Programfiles directory.
For example, mine is:
C:\Program Files (x86)\AppGini_5.94\files\language.php
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
Re: Datepicker - first day of week
Great, that solved it completely.
resulted in a Norwegian datepicker with monday as start of week.
Thanks!
Eagle
Code: Select all
$Translation['datetimepicker locale'] = 'nb';
Thanks!
Eagle
Re: Datepicker - first day of week
You are welcome! Good to know that this locale option still works in latest AG 5.9x
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools