FirstWeekDay
Integer that defines which day to use as the first day of the week.
Syntax:
FirstWeekDay
Monday is the first day of the week according to ISO 8601, the international standard for the representation of dates and times. Monday is also used as the first day of the week in a number of countries, for example on the UK, France, Germany and Sweden.
But in other countries, like in the United States and Canada, Sunday is considered to be the start of the week.
In Qlik Sense, the regional settings are fetched when the app is created, and the corresponding settings are stored in the script as environment variables.
A North American app developer often gets Set FirstWeekDay=6; in the script, corresponding to Sunday. A European app developer often gets Set FirstWeekDay=0; in the script, corresponding to Monday.
Value |
Day |
---|---|
0 |
Monday |
1 |
Tuesday |
2 |
Wednesday |
3 |
Thursday |
4 |
Friday |
5 |
Saturday |
6 |
Sunday |
Regional settings
Unless otherwise specified, the examples in this topic use the following date format: MM/DD/YYYY. The date format is specified in the SET DateFormat statement in your data load script. The default date formatting may be different in your system, due to your regional settings and other factors. You can change the formats in the examples below to suit your requirements. Or you can change the formats in your load script to match these examples. For more information, see Modifying regional settings for apps and scripts.
Default regional settings in apps are based on the user profile. These regional format settings are not related to the language displayed in the Qlik Cloud user interface. Qlik Cloud will be displayed in the same language as the browser you are using.
If you are an app creator, you can set the default region for apps you create. For more information, see Setting your preferred regional settings for creating apps and scripts in Qlik Cloud Analytics.
Examples:
If you want ISO settings for weeks and week numbers, make sure to have the following in the script:
If you want US settings, make sure to have the following in the script: