Skip to main content

$toString

The $toString operator converts a value to a string, with optional formatting for dates.

Input

  • An array containing one or two values: the value to convert and an optional format string (for dates)

Output

  • The string representation of the input value

Examples

Basic Conversion

Result: "42"

Date Formatting

Result: "2023-01-15 10:30:00"

Field Value

Result: The string representation of the number_value field