Skip to main content


This environment variable defines the date format used as the default in the app and by date returning functions like date() and date#(). The format is used to interpret and format dates. If the variable is not defined, the date format set by your regional settings is fetched when the script runs.



DateFormat Function examples
Example Result
Set DateFormat='M/D/YY'; //(US format) This use of the DateFormat function defines the date as the US format, month/day/year.
Set DateFormat='DD/MM/YY'; //(UK date format) This use of the DateFormat function defines the date as the UK format, day/month/year.
Set DateFormat='YYYY/MM/DD'; //(ISO date format) This use of the DateFormat function defines the date as the ISO format, year/month/day.

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.

Default regional settings in apps are based on the regional system settings of the computer or server where Qlik Sense is installed. If the Qlik Sense server you are accessing is set to Sweden, the Data load editor will use Swedish regional settings for dates, time, and currency. These regional format settings are not related to the language displayed in the Qlik Sense user interface. Qlik Sense will be displayed in the same language as the browser you are using.

Example 1 – System variables default

Example 2 – Change system variable

Example 3 – Date interpretation

Example 4 – Foreign date formatting