LocalDateFmt

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

Syntax

LocalDateFmt([n [, k ]])

Parameters

Parameter

Description

n (optional)

An integer identifying the locale-specific date 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 the LocalDateFmt function:

Expression

Returns

LocalDateFmt(1, "de_DE")

tt.MM.uu

LocalDateFmt(2, "fr_CA")

aa-MM-jj

LocalDateFmt(3, "de_CH")

t. MMMM jjjj

LocalDateFmt(4, "fr_FR")

EEEE j MMMM aaaa

// Ethnio survey code removed