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 and is documented in the tformat section of this chapter.
Example
str = to_char( ts, "YYYY-MM-DD HH24:MI:SS" )