# Date.to_string ## Function Output date and time in default format. ## Syntax ```bt date_value.to_string() ``` ## Parameters No parameters. ## Return value | Type | Description | | ------ | ------ | | String | Returns `%Y-%m-%d %H:%M:%S` format string. | ## Example ```bt result = date('2026-06-09 10:11:12').to_string() // Output: 2026-06-09 10:11:12 print result ``` ## Notes - Equivalent to format('%Y-%m-%d %H:%M:%S').