Datepicker - first day of week

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
eagle
Veteran Member
Posts: 39
Joined: 2013-01-09 15:38

Datepicker - first day of week

Post by eagle » 2021-01-26 13:04

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!

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Datepicker - first day of week

Post by jsetzer » 2021-01-26 13:41

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 [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

eagle
Veteran Member
Posts: 39
Joined: 2013-01-09 15:38

Re: Datepicker - first day of week

Post by eagle » 2021-01-26 14:16

Ok. Thanks for your quick reply.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Datepicker - first day of week

Post by jsetzer » 2021-01-26 16:07

Just another idea: Open language.php and search for...

Code: Select all

$Translation['datetimepicker locale']
The value should match with your two-character country-code.

In my (German) projects it is configured as 'de' ...

Code: Select all

$Translation['datetimepicker locale'] = 'de';
... which automatically results in a German calendar with weeks starting on Monday:

chrome_Q9nLclfCou.png
chrome_Q9nLclfCou.png (10.02 KiB) Viewed 1888 times


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 [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

eagle
Veteran Member
Posts: 39
Joined: 2013-01-09 15:38

Re: Datepicker - first day of week

Post by eagle » 2021-01-27 12:18

Great, that solved it completely.

Code: Select all

$Translation['datetimepicker locale'] = 'nb';
resulted in a Norwegian datepicker with monday as start of week.

Thanks!

Eagle

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Datepicker - first day of week

Post by jsetzer » 2021-01-27 12:19

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 [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply