Time.ToText
Returns a textual representation of the Time value.
function (optionaltime
as nullable any, optionalformat
as nullable any, optionalculture
as nullable any) as nullable any
Returns a textual representation of
time
, the Time value, time
. This function takes in an optional format parameter format
. For a complete list of supported formats, please refer to the Library specification document.Time
Get a textual representation of #time(11, 56, 2).
Time.ToText(#time(11, 56, 2))
"11:56 AM"
Get a textual representation of #time(11, 56, 2) with format option.
Time.ToText(#time(11, 56, 2), "hh:mm")
"11:56"
Last modified 4yr ago