TO_STRING
Converts a date into a STRING. The date is any date data type.
Syntax
TO_STRING(<date>)
Parameter | Description |
---|---|
<date> | The date to be converted to a string. |
Example
This query returns today’s date and the current time.
SELECT
TO_STRING(NOW());
Returns: 2022-10-10 22:22:33