[]
Converts a specified value to an equivalent boolean value.
Syntax
ToBoolean(value)
Arguments
value - a value to convertExamples
You can use the following expression to convert "true" or "false" strings to a boolean value.
{ToBoolean("true")}
Converts a specified value to a Unicode character.
Syntax
ToChar(value)
Arguments
value - a value to convertExamples
You can use the following expression to convert the copyright symbol code to a character.
{ToChar(169)}
Converts a specified value to a Date value.
Syntax
ToDateTime(value)
Arguments
value - a value to convertExamples
You can use the following expression to convert the 2020-05-06 string to the corresponding date.
{ToDateTime("2020-05-06")}
Converts a specified value to a number. JavaScript numbers are always stored as double-precision floating-point numbers, following the international IEEE 754 standard.
Syntax
value)value)value)value)value)value)value)value)value)Arguments
value - a value to convertExamples
You can use the following expression to convert the 123 string to the number.
{ToInt16("123")}
Converts a specified value to a string.
Syntax
ToString(value)
Arguments
value - a value to convertExamples
You can use the following expression to convert the 123.456 number to the string.
{ToString(123.456)}
Returns a string containing a value formatted according to instructions contained in a format string.
Syntax
Format(value, format)
Arguments
value - a value to formatformat - the format string. ActiveReportsJS follows the .NET conventions for format strings:
Examples
You can use the following expression to format the UnitPrice field value as currency with three decimal digits.
{Format(UnitPrice, "c3")}