Returns a time format, given a time format
style.
Syntax
TimeFmt([
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 you do not include
a value for
n
, or if
n
is invalid,
the function uses the default style value.
|
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
TimeFmt
function:
Expression
|
Returns
|
TimeFmt(1)
|
h:MM A
(if en_US locale
is set)
|
TimeFmt(2, "fr_CA")
|
HH:MM:SS
|
TimeFmt(3, "fr_FR")
|
HH:MM:SS Z
|
TimeFmt(4, "de_DE")
|
H.MM' Uhr 'Z
|
|
|
|