LocalTimeFmt

Returns a localized time format string, given a time format style.

Syntax

LocalTimeFmt([n [, k ]])

Parameters

Parameter

Description

n (Optional)

An integer identifying the locale-specific time format style as follows:

  • 1 (Short style)

  • 2 (Medium style)

  • 3 (Long style)

  • 4 (Full style)

If n is omitted (or is invalid), the default style value 0 is used.

k (Optional)

A locale identifier string that conforms to the locale naming standards. If k is omitted (or is invalid), the ambient locale is used.

Examples

The following expressions are examples of using the LocalTimeFmt function:

Expression

Returns

LocalTimeFmt(1, "de_DE")

HH:mm

LocalTimeFmt(2, "fr_CA")

HH:mm:ss

LocalTimeFmt(3, "de_CH")

HH:mm:ss z

LocalTimeFmt(4, "fr_FR")

HH' h 'mm z

// Ethnio survey code removed