Table of Contents

Codeunit "Time Zone Selection"

ID 9198
Namespace: System.DateTime

Provides basic functionality to lookup page for Time zones.

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

LookupTimeZone

Opens a window for viewing and selecting a Time Zone.

procedure LookupTimeZone(var TimeZoneText: Text[180]): Boolean

Parameters

Name Type Description
TimeZoneText Text[180]

Out parameter with the Time Zone id of the selected Time Zone.

Returns

Type Description
Boolean

True if a timezone was selected.

ValidateTimeZone

Validate a time zone text given as input and converts it into a Time Zone ID.

procedure ValidateTimeZone(var TimeZoneText: Text[180])

Parameters

Name Type Description
TimeZoneText Text[180]

The Time Zone text to validate.

GetTimeZoneDisplayName

Finds the Time Zone that matches the given text and returns its display name.

procedure GetTimeZoneDisplayName(TimeZoneText: Text[180]): Text[250]

Parameters

Name Type Description
TimeZoneText Text[180]

The search query for the Time Zone.

Returns

Type Description
Text[250]

The Display Name of the Time Zone.

See also