Skip to main content Skip to complementary content

GMT - script and chart function

This function returns the current Greenwich Mean Time, as derived from the regional settings. The function returns values in the TimestampFormat system variable format.

Whenever the app is reloaded, any load script table, variable or chart object that uses the GMT function will be adjusted to the latest current Greenwich Mean Time as derived from the system clock.

Syntax:  

GMT( )

Return data type: dual

These examples use the timestamp format M/D/YYYY h:mm:ss[.fff] TT. The date format is specified in the SET TimestampFormat statement at the top of your data load script. Change the format in the examples to suit your requirements.

Function examples
Example Result
GMT() 3/28/2022 2:47:36 PM

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 - Variable (script)

Example 2 - November start of year (script)

Example 3 - chart object (chart)

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!