to_char( timestamp, tformat )
Convert a timestamp into a string using the tformat value. The tformat
specification is similar to the format strings used by the SQL to_char
function.
Example
str = to_char( ts, "YYYY-MM-DD HH24:MI:SS" )