toString

Converts an argument value into a string value, depending on its type. For more information on data types, refer to this page.

Category

Conversion

Function syntax

toString(<parameter>)

Parameters

Parameter
Description
dateTime
converts the date in UTC date format
dateTimeOnly
converts the date in UTC date format
duration
convert into the corresponding number of milliseconds as a string
integer
converts to string representation of the value (1 becomes “1”)
decimal
converts to string representation of the value (1.5 becomes “1.5”)
boolean
convert the boolean value as ‘true’ if true, ‘false’ if false

Signatures and returned type

toString(<dateTimeOnly>)

toString(<dateTime>)

toString(<duration>)

toString(<boolean>)

toString(<integer>)

toString(<decimal>)

Return a string.

Example

toString(4)

Returns “4”.

recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9