Converts the specified value to its equivalent string representation.
string ToString(object value; [string format])
value |
The value to convert. |
format |
Optional format string. See Microsoft's documentation for DateTime.ToString(), Double.ToString(), and Int.ToString() for how to define format strings. |
Example
ToString(Now();"dd/MM/yyyy")
Returns the current date in the format dd/MM/yyyy, e.g. "31/07/2024".