Skip to main content
Version: 20 R7 BETA

GET SYSTEM FORMAT

GET SYSTEM FORMAT ( format ; value )

ParameterTypeDescription
formatIntegerSystem format to be retrieved
valueTextValue of format defined in the system

Description

The GET SYSTEM FORMAT command returns the current value of several regional parameters defined in the operating system. This command can be used to build “automatic” custom formats based on the system preferences.

In the format parameter, pass the type of parameter whose value you want to know. The result is returned directly by the system in the value parameter as a character string. In format, you must pass one of the following constants of the System Format theme. Below is a description of these constants:

ConstantTypeValueComment
Currency symbolInteger2Currency symbol (e.g.: “$”)
Date separatorInteger13Separator used in date formats (e.g.: “/”)
Decimal separatorInteger0Decimal separator (e.g.: “.”)
Short date day positionInteger15Position of the day in the short date format: “1” = left, “2” = middle, “3” = right
Short date month positionInteger16Position of the month in the short date format: “1” = left, “2” = middle, “3” = right
Short date year positionInteger17Position of the year in the short date format: “1” = left, “2” = middle, “3” = right
System date long patternInteger8Long date display format in the form “dddd MMMM yyyy”
System date medium patternInteger7Medium date display format in the form “dddd MMMM yyyy”
System date short patternInteger6Short date display format in the form “dddd MMMM yyyy”
System time AM labelInteger18Additional label for a time before noon in 12-hour formats (e.g.: “Morning”)
System time long patternInteger5Long time display format in the form “HH:MM:SS”
System time medium patternInteger4Medium time display format in the form “HH:MM:SS”
System time PM labelInteger19Additional label for a time after noon in 12-hour formats (e.g.: “Afternoon”)
System time short patternInteger3Short time display format in the form “HH:MM:SS”
Thousand separatorInteger1Thousand separator (e.g.: “,”)
Time separatorInteger14Separator used in time formats (e.g.: “:”)

See also

OBJECT SET FORMAT

Properties

Command number994
Thread safe